t
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users
://fishshell.com/docs/current/index.html#variables-override>, count
> <http://fishshell.com/docs/current/cmds/count.html#cmd-count> and for
> <http://fishshell.com/docs/current/cmds/for.html#cmd-for>. Their globs
> are permitted to expand to zero arguments, as with sh
hrd/software/bootloader/u-boot-socfpga/arch/arm/dts/*10*
Then test if $files is not empty:
if set -q files[1]
ls $files
end
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
___
Fish-users mailing list
Fish-users@lists.sourcefor
On Sat, Sep 7, 2019 at 9:08 AM Marcin Zajączkowski wrote:
> Sure. I want to be able to call other command on the command failure:
>
> > my_command || call_error_handler
>
> where the error handler could be curl to https://healthchecks.io/
The following script produces this result:
directory
to a different system you will automatically get your fish color
preferences on that machine.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users
_color autosuggestion red green
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users
//fishshell.com/docs/current/index.html#variables-color
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users
ed in double-quotes. Unlike a
POSIX shell where you do need to quote the var expansion to keep it from
being split on $IFS.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
htt
rectory of the
> process owner.
This is also how it works in shells like ksh and bash. The shell has no way
of knowing that the string following "if=" is a path. You can use a var to
do it:
set x ~/Downloads/...
sudo dd if=$x ...
--
Kurtis Rader
Caretaker
be handled:
https://github.com/fish-shell/fish-shell/issues/new. Even better would be
if you opened a pull-request with a fix.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out the vibrant
think you can make a convincing argument for implementing the
feature you should open an issue:
https://github.com/fish-shell/fish-shell/issues/new
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Fish-us
ting to fish. And it doesn't look like any of the other
devs feel it is important enough to include.
On Fri, May 11, 2018 at 4:06 PM, Kurtis Rader <kra...@skepticism.us> wrote:
>>>
>>>> It is working correctly. You're naturally confused because fish special
>>>>
d the contents of /var/log/syslog (or whatever the name of the system log
is on Fedora 27) for error messages.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out the vibrant tech community on
--
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
>
` command presents the same info (with duplicates removed) and lets
you select one by number or letter.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out the vibrant tech community on one o
on is unique or is an exact match for some defined
> option. A long option
>may take a parameter, of the form --arg=param or --arg param.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
_
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out
. Someone just needs to write the code to implement the idea
:-)
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out the vibrant tech community on one of the world's most
engaging tech sites,
On Fri, Sep 22, 2017 at 1:10 PM, Kurtis Rader <kra...@skepticism.us> wrote:
> On Thu, Sep 21, 2017 at 6:20 AM, Mark Volkmann <r.mark.volkm...@gmail.com>
> wrote:
>
>> Is it possible to get "set_color --dim" to work on macOS?
>> It was quite a b
term
terminfo definitions don't either. Both Terminal.app and iTerm2 support dim
mode but if you're using a xterm terminfo definition (e.g.,
"xterm-256color") then fish doesn't know the terminal supports it. You'll
need to create a custom terminfo definition that includes
"ente
quot;, "for",
"switch", "while", "continue", "break". The status of the commands that
follow them is visible for the keywords which take a command (e.g.,
"builtin"). However, ev
re to find it but one exists since we've had a few issues
opened about using fish inside termux on Android. Such as this one:
https://github.com/fish-shell/fish-shell/issues/4269
--
Kurtis Rader
Caretaker of the exceptional ca
e but it isn't supported and its
possible you won't end up with the desired result. You should instead use
`history delete`. You can safely remove ~/.config/fish/fish_history.
--
Kurtis Rader
Caretaker of the exceptional
On Mon, Sep 4, 2017 at 8:27 AM, Greg Reagle <greg.rea...@umbc.edu> wrote:
> On Mon, Sep 4, 2017, at 11:04, Kurtis Rader wrote:
> > Beware `expr`s automatic coercion of strings to ints. If you do `expr
> '234 < 1234' you'll
> > get false despite "234" being lex
alse despite "234" being lexically greater than "1234".
Which may be what you want but it's a potential gotcha if you really wanted
a string, not int, comparison.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
-
d with. If you do want a function that should
never be run with any arguments you should do so explicitly:
function greet
if set -q argv[1]
echo greet: no arguments allowed >&2
exit 1
end
echo Hello $USER
On Sat, Sep 2, 2017 at 6:05 AM, Greg Reagle <greg.rea...@umbc.edu> wrote:
> On Fri, Sep 1, 2017, at 15:05, Kurtis Rader wrote:
> > Fish won't work if the terminal height is less than two. I don't recall
> the exact value but
> > it also won't behave sensibly if the wi
ell/issues/2559. To give the user a
chance of seeing some output and typing commands the current code assumes
the stty values are invalid if they are unreasonably small and falls back
to the legacy lowest common denominator of 80x24.
--
Kurtis Rader
On Sun, Aug 27, 2017 at 12:36 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
wrote:
> Ah, I was looking for something like "set --show". Thanks Kurtis!
> Do you know approximately when Fish 2.7 will be released?
>
The date is a bit squishy but it should happen sometime
e: set in universal scope, unexported, with 2 elements
$varname[1]: length=9 value=|universal|
$varname[2]: length=5 value=|value|
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out the vibr
certainly escape sequences to color the output.
Run `__fish_vcs_prompt | od -tx1z` to see them. At the moment there is no
good way to get a count of the displayable characters. I opened an issue to
propose implementing a `string width` command to help with this but it
hasn't
that clearer in the docs.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slas
ble. You want
set -eg $listName[1][$index]
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out the vibrant tech community on one of the world's most
engaging
iting to stderr is not the
> answer.
>
Glenn's answer works but if you want to ensure you're using whatever color
standard fish code uses you should use the `$fish_color_error` variable;
e.g., `echo (set_color $fish_color_error)my error message(set_color normal)
>&2`.
--
Kurtis Rader
Caretake
On Sun, Aug 20, 2017 at 3:28 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
wrote:
> On Sun, Aug 20, 2017 at 5:15 PM, Kurtis Rader <kra...@skepticism.us>
> wrote:
>>
>> This statement, "for Window, can only run in Cygwin", isn't true. While
>> w
ng list. There are many other changes we can only do in a major
release that might make it into 3.0. See
https://github.com/fish-shell/fish-shell/milestone/7 for other items that
might make it into 3.0.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
temporary file it created. The temporary file
is an implementation detail and thus not documented. Apparently you have
done something like `alias rm rm -i`. It might make sense to modify
`funced` to do `rm -f` to override the `-i` option. I don't like doing
that, however, because it also suppresses
just directly
edit the autoloaded script in ~/.config/fish/functions. Existing fish
sessions will notice within a few seconds that the script file has changed
and reload it.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
---
status current-line)` do? What stack frame should it use? That question
is basically the crux of
https://github.com/fish-shell/fish-shell/issues/4161. Feel free to comment
on that issue.
--
Kurtis Rader
Caretaker of the exceptional
e moment that feature is pretty much unusable. See
https://github.com/fish-shell/fish-shell/issues/4161
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out the vibrant tech community on on
which can have zero, one, or more values. `set -q var[1]` is the idiomatic
way to test that the var is not only set but also has at least one value.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Ch
On Fri, Aug 18, 2017 at 4:12 PM, Greg Reagle <greg.rea...@umbc.edu> wrote:
> On Fri, Aug 18, 2017, at 18:51, Kurtis Rader wrote:
> > Add this to the top of the function:
> >
> > set -q language[1]
> > or set language english
>
> There is a potential probl
-
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
>
munity on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
--
Kurtis Rader
Caretaker of the exceptio
ere writing a completion
script using the `complete` command. See `man complete`; specifically the
`--arguments` option.
On Thu, Aug 17, 2017 at 10:20 PM, Kurtis Rader <kra...@skepticism.us> wrote:
>
>> On Thu, Aug 17, 2017 at 8:14 PM, Mark Volkmann <r.mark.volkm...@gmail.com
>>
release. Note that this release will
include backward incompatible changes that might require changes to
your personal fish config or plugins that you use.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
nd to do that the "status" command needs some
enhancements. Until then it is sometimes useful to run the script with
`-d3` to better understand the sequence of commands run.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
---
ry` command in the past couple of years.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out the vibrant tech community on one of the world's most
engaging te
really want an empty history you need to rename or delete your
~/.bash_history file before doing the next step. Exit all your fish shells.
Start /bin/sh or some other non-bash shell then remove your fish history:
rm ~/.local/share/fish/fish_history
--
Kurtis Rader
Caretaker of the exceptional ca
ist
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check
ts that have already been merged
<https://github.com/fish-shell/fish-shell/blob/master/CHANGELOG.md>. After
that there may be fish 2.7.x releases if significant bugs are found.
--
Kurtis Rader
Caretaker of the exceptional canin
See issue https://github.com/fish-shell/fish-shell/issues/4220
Is there a reason to continue allowing `read` with no var name(s) to store
the result of the read?
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
would like it to behave.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link
---
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______
> Fish-users mailing list
> Fish-us
Please read this issue
<https://github.com/fish-shell/fish-shell/issues/4154> and comment. We have
some non-backward compatible changes we'd like to make and would like input
from the fish user community.
--
Kurtis Rader
Caretaker of the exceptional canines Junior an
t; --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sou
script
found in the directories enumerated by the $fish_complete_path var you need
to explicitly load the other possible completion scripts.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check
s this other sequence". It is not clear such a feature would be
useful and unambiguous; e.g., how do you deal with cycles? But if you can
define a sensible syntax and behavior for it please open an issue at
https://github.com/fish-sh
?
>
I do not understand the question. You can bind a key sequence to any
sequence of commands, not just a function. It doesn't make sense to execute
`bind abc ab` where the final `ab` in that command refers to the character
sequence in `bind ab some_function`.
--
Kurtis Rader
Caretaker of the
gt; --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______
> Fish-users mailing list
>
` command be improved to handle that man page or
requesting that a custom completion script be written. Note that the issue
is more likely to be resolved quickly if you're willing to create change to
the code :-)
--
Kurtis Rader
Caretaker of the exceptional ca
bruary 14, 2017, Kurtis Rader <kra...@skepticism.us>
> wrote:
> > The fish shell has no hard code limits on such things. You're
> essentially limited by available memory (or virtual address space).
>
>
> That's what I would have guessed.
>
> But I was suddenly curious,
---
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.ne
.link/slashdot
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
---
t recommend the `-exec` solution is it's less
efficient than the alternatives. It's also often harder to read which can
lead to mistakes.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
Check out the
not run for each matching file
name. You need to do this via a script. Something like (untested):
find /search/path -iname "*.pcap" -print0 | while read -z path
set -l basename (basename $path)
/path/to/tool -para1 $path -para2 /tmp/results/$base
;
> > That looks like the head of a branch, iothread_perform_lambda, that has
> several other commits.
>
> Correction. Not the head. I used git gui for the first time and
> misinterpreted the output. But it's definitely that branch.
> >
> >
> >
> > On We
mbda`
branch. It is irrelevant unless you have done `git checkout
iothread_perform_lambda`
which is something you should not be doing. All that matters is the
`master` branch unless you are reviewing a pull-request and want to test
the branch associated with that PR.
--
Kurtis Rader
Caretaker of the
ist_t;
bool job_list_is_empty(void);
-/// A class to aid iteration over jobs list. Note this is used from a
signal handler, so
-/// careful to not allocate memory.
+/// A class to aid iteration over jobs list
class job_iterator_t {
job_list_t *const job_list;
job_list_t::iterator curren
th the build from the master branch installed (I didn't bother to stash
> my local fish_vi_cursor.fish, since that didn't affect previous outcomes),
> ^C doesn't work.
>
>
>
> On Wed, Jan 25, 2017 at 06:23:17PM -0800, Kurtis Rader wrote:
> > On Wed, Jan 25, 2017 at 6:04
class to aid iteration over jobs list. Note this is used from a
signal handler, so it must be
-/// careful to not allocate memory.
+/// A class to aid iteration over jobs list
--
Kurtis Rader
Caretaker of the exceptional canines Jun
hanks for bringing this to our attention. I've opened
https://github.com/fish-shell/fish-shell/issues/3780
If you can confirm that building fish from commit f4476100 works for you
that would be appreciated.
--
Kurtis Rader
Caretaker of the excep
sequence sent by other keys. iTerm.app allows you to do so
for left-option and right-option independent of each other while
Terminal.app has a single configurable setting that applies to both option
keys.
--
Kurtis Rader
Caretaker of the excepti
On Mon, Dec 19, 2016 at 9:00 AM, Mike Meyer <m...@mired.org> wrote:
> Is it possible to get to the unexpanded arguments inside a function? It'd
> be nice to do something like (from zsh):
>
No, it isn't. See https://github.com/fish-shell/fish-shell/issues/1511
--
Kurtis
h-command-substitution-doesnt-work-like-in-bash-or-zsh/28129450#28129450
However, rather than using `tr` as suggested in that SO thread I would
recommend using the `string split` builtin.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
as equivalent
> of this one?
>
I don't know what that does. Fish already has a pretty good completion
system that will suggest appropriate flags and subcommands depending on
what you have already typed.
efining your own
~/.config/fish/functions/open.fish autoload script that is empty. We have a
PR open, https://github.com/fish-shell/fish-shell/pull/3571, that is likely
to remove that function.
> - Is this latest release "LastC++03” an official one? Have not seen any
> info about it
util erasevolume HFS+ ramdisk "/dev/disk1"
> Started erase on disk1
> Unmounting disk
> Erasing
> Initialized /dev/rdisk1 as a 12 GB case-insensitive HFS Plus volume
> Mounting disk
> Finished erase on disk1 ramdisk
>
> A+
> Dave
>
> -
But fish won't expand.
>
Omit the asterisk. Filename completion does fuzzy literal matching. It
doesn't support wildcards or regexes.
--
Kurtis Rader
Caretaker of the ex
it has a `--wraps` flag.
FWIW, I think the `complete` command should have a query option to make it
easy to output only the completions for a specific command. That's another
enhancement request someone could make if they felt strongly about it.
--
Kurtis Rader
Caretaker of the exceptional canin
On Fri, Nov 25, 2016 at 7:46 PM, Shiyao Ma <i...@introo.me> wrote:
> Thanks.
>
> Problem solved.
>
You're welcome. For the record the issue about `functions $funcname` not
showing the `--wraps` flag is issue #1625
<https://github.com/fish-shell/fish-shell/issues/1625
gt;
>
>
> --
>
> 吾輩は猫である。ホームーページはhttps://introo.me <http://introo.me>。
>
>
> --
>
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sour
s.
>
> --
>
> 吾輩は猫である。ホームーページはhttps://introo.me <http://introo.me>。
>
>
> --
>
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforg
ndard for shell syntax. The closest analog in
fish is /etc/fish/config.fish (or wherever $__fish_sysconfdir points). And,
of course, the equivalent of ~/.profile is ~/.config/fish/config.fish.
--
Kurtis Rader
Caretaker of the exceptional canines
gt; On 22/10/16 18:14, Kurtis Rader wrote:
> > If you're using fish 2.3.0 or newer (e.g., git head) we already support
> > this: e.g., math -s5 10 / 3
> >
>
> Well, when I try fish --version
>
> I get 2.3.1
>
> When I try echo (math -s5 10/3)
>
> I
ink/slashdot
>> ___
>> Fish-users mailing list
>> Fish-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fish-users
>>
>
> --
>
>
>
>
> -
^
> in function “fisher”
> called on standard input
> with parameter list “ls”
>
> any ideas?
>
> https://dpaste.de/dEB8 is my full config.fish.
>
> A+
> Dave
>
>
>
> --------
> --
> __
olor_selection --background=purple
> fish_color_user green
> fish_color_valid_path --underline
> fish_greeting Welcome\ to\ fish,\ the\ friendly\ interactive\ shell\nType\
> \e\[32mhe…
> fish_key_bindings fish_default_key_bindings
> fish_pager_color_completion normal
> fish_pager_color_descri
white green)hello(set_color normal)
Do you see the same green text on a white background on both systems?
> On Aug 1, 2016, at 7:18 PM, Kurtis Rader <kra...@skepticism.us> wrote:
>
> What is $TERM $FISH_VERSION on each system?
>
> On Mon, Aug 1, 2016 at 3:10 PM, Pito Sala
_
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
---
it from source and is closed.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.
ode. Please open an issue at
https://github.com/fish-shell/fish-shell/issues/new
P.S., I suspect no one has reported this because most fish users (certainly
the core developers) inhibit that greeting via
function fish_greeting; end
or
set -g fish_greeting ''
ting is only shown when a new interactive
shell is started just before the first prompt is displayed. Can you provide
a script that would allow someone else to recreate the problem? Also, what
does "echo $FISH_VERSION" output? if you're running a fish version older
than 2.3.0 I'd want
-modifying its own set of env vars. In C you would do that with the
`putenv()` or `setenv()` functions.
Note that your problem statement, as written, is not unique to the fish
shell. The answer would be the same if you used bash or zsh.
--
Kurtis Rader
Ca
if you use the `history --delete` command please read
https://github.com/fish-shell/fish-shell/issues/3242 and comment on the
proposal to remove the (broken) ability to delete individual entries.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
s older than 2.3.0 (which
don't have the string builtin) you'll need to do it the hard way:
set -l fish_version
for i in 1 2 3
set fish_version[$i] (echo 2.3.1 | cut -d . -f $i)
end
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
ur editor to stay in the foreground. For example,
when using the Vim GUI via "vim -g" or "gvim" you also need the "-f" flag
to keep it in the foreground.
Also, as others have pointed out, you need to run "funcsave" if you want
your edited function to b
ble syntax you're using is
not. In fish you would traditionally do
set -l base_pwd (basename $PWD)
echo -ne "\033];$base_pwd\007"
As of fish 2.3.0 you could also use the new "string" builtin.
--
Kurtis
h
"command". Also, as of the 2.3.0 release you need to use the
"--shadow-builtin" flag to indicate you know that you're overriding a
builtin command.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
---
1 - 100 of 134 matches
Mail list logo