spread the word so we can get more people to consider using fish!
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http
Does fish have an equivalent to "set -x" in bash that causes it to print
all executed commands for debugging?
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the wo
eviations) to the old thing
(aliases).
* The section on aliases is very short, so I don't think readers will feel
that they struggled to read that before reading the section on
abbreviations.
I hope you will provide more feedback!
--
R. Mark Vol
rent and future fish
sessions without requiring a change to config.fish. But if you know it's a
change you want in all your shells and you don't mind it only taking effect
in future shells, it seems better to just set PATH in config.fish. Isn't it
the case that if you modify the value of fish_use
is that you don't have to go mucking around in files: just
run this once at the command line, and it will affect the current session
and all future instances too. (Note: you should NOT add this line to
config.fish. If you do,
Entering "builtin -n" lists all the builtins. This list includes "cd".
Entering "type -t cd" says that cd is a function.
How can cd be both a builtin and a function?
--
R. Mark Volkmann
Object Computing, Inc.
--
What is the reason why the expr command is not documentation along with
other fish commands at https://fishshell.com/docs/current/commands.html. Is
it considered to be in a different category of commands from those?
--
R. Mark Volkmann
Object Computing, Inc
dirh outputs a list of up the 25 of the past directories I've been in.
Entries in the list are numbered.
Is there a way to ask to cd to the directory of an entry by its number?
--
R. Mark Volkmann
Object Computing, Inc
The fact that everything in fish is done with a “command” and they all follow a
consistent syntax is one of the things I love most about fish! and & or are
commands, not operators.
R. Mark Volkmann
Object Computing, Inc.
> On Oct 18, 2017, at 4:37 PM, John Chludzinski <joh
of long switch names as long as only one switch matches it?
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link
Is there a possibility that fish 2.7 will be released before 11/1?
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http
Thanks all! I think my explanation at
https://mvolkmann.github.io/fish-article/#CommandHistory is much better now.
On Sun, Oct 8, 2017 at 9:09 AM, Michael Nickerson <darkshado...@me.com>
wrote:
>
> > On Oct 08, 2017, at 7:27 AM, Mark Volkmann <r.mark.volkm...@
> On Oct 7, 2017, at 9:07 PM, Greg Reagle <greg.rea...@umbc.edu> wrote:
>
>> On Sat, Oct 7, 2017, at 20:18, Mark Volkmann wrote:
>> Here's another way to test this.
>> - open two fish sessions
>> - in the first, enter "echo one"
>> - in the sec
On Sat, Oct 7, 2017 at 5:09 PM, Greg Reagle <greg.rea...@umbc.edu> wrote:
> On Sat, Oct 7, 2017, at 17:50, Mark Volkmann wrote:
> > On Sat, Oct 7, 2017 at 3:52 PM, Greg Reagle <greg.rea...@umbc.edu>
> wrote:
> > > As far as I understand, it is not tr
On Sat, Oct 7, 2017 at 3:52 PM, Greg Reagle <greg.rea...@umbc.edu> wrote:
> On Sat, Oct 7, 2017, at 16:45, Mark Volkmann wrote:
> > The draft version of my article at
> > https://mvolkmann.github.io/fish-article/
> > has an open question which is:
> >
> >
in ~/.local/share/fish/fish_history.
I don't see anything in that file that tracks the session in which the
commands were entered.
How does it manage to only recall commands that belong to the current
session?
--
R. Mark Volkmann
Object Computing, Inc
.6/TclCmd/string.htm). Tcl was one of my very
> first languages, and I have an enduring love for it: seeing Tcl-ish
> tendencies growing in fish warms my heart.
>
Thanks so much for the feedback!
--
R. Mark Volkmann
Object Computing, Inc.
-
ume all readers will have much experience in
other shells. I want to also target Windows developers that have only used
a Command Prompt. That's why I don't want to omit explaining things like
true and false.
> If I have more time I might go through the rest.
>
Great!
how minor.
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link
ll situations and when the prompt
> is too long, usability starts to decrease rapidly.
>
> Robert
>
> > On Sep 30, 2017, at 13:59, Mark Volkmann <r.mark.volkm...@gmail.com>
> wrote:
> >
> > Perhaps my function is getting called, but fish becomes convinced that
a single line. Is
there another approach I can take to creating a multi-line prompt?
On Sat, Sep 30, 2017 at 2:33 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
wrote:
> I have defined a custom fish prompt that works great most of the time. I
> have verified that it works when $COLUMNS is >
tps://github.com/mvolkmann/MyUnixEnv/blob/master/.config/fish/functions/fish_prompt.fish
.
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.
Can anyone tell me when fish 2.0 was initially released?
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link
were entered.
How does it manage to only recall commands that belong to the current
session?
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites
t starts with a dash, and of course "-foo" is not
a valid switch for "string sub".
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging t
I see that can enter a command name (referring to an executable script file
in PATH) followed by & to run it in the background, but the same doesn't
seem to work with function names. Is there a reason why those are treated
differently?
--
R. Mark Volkmann
Object Computing,
t 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 bat
Is it possible to get "set_color --dim" to work on macOS?
It was quite a battle to get --italic to work, but I'm past that.
I just want to verify that it is possible to get --dim working before I
expend any more effort.
--
R. Mark Volkmann
Object Comp
> On Sep 17, 2017, at 9:53 PM, Kurtis Rader <kra...@skepticism.us> wrote:
>
>> On Sun, Sep 17, 2017 at 6:24 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
>> wrote:
>> Is there a short list of fish commands that do not set the status variable?
>
> I
Is there a short list of fish commands that do not set the status variable?
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org
I will do that if nobody can tell me their real name.
R. Mark Volkmann
Object Computing, Inc.
> On Sep 11, 2017, at 1:34 PM, Myrddin Emrys <myrd...@gmail.com> wrote:
>
> Nothing wrong with crediting "The user who goes by the online moniker
> 'ridiculousfish'." It
I want to know because I am writing a long article on the fish shell that will
be released on 11/1. It contains a section on the history and I would like to
credit that person by name.
R. Mark Volkmann
Object Computing, Inc.
> On Sep 11, 2017, at 1:19 PM, Mandeep Sandhu <mandeep
Who is ridiculousfish?
Perhaps that is a closely guarded secret.
Google doesn't seem to know. ;-)
---
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging
IIUC, there isn't a command in fish that can be used to compare two strings
to see if one is greater than the other in sorting order. For example, this
doesn't work:
set v1 'foo';
set v2 'bar';
if test $v1 > $v2
...
end
Is there a recommended workaround for this?
--
R. Mark Volkmann
Obj
If I enter:
alias greet 'echo Hello, $USER'
and then enter:
functions greet
it outputs:
# Defined in - @ line 0
function greet --description 'alias greet echo Hello, $USER'
echo Hello, $USER $argv;
end
Why does the generated function output $argv?
--
R. Mark Volkmann
Object Computing
"tput cols" seems to have the same issue.
When the number of columns is less than 20, it reports 80.
On Fri, Sep 1, 2017 at 11:45 AM, Glenn Jackman <jack...@pythian.com> wrote:
> How about `set term_width (tput cols)`
>
> On Fri, Sep 1, 2017 at 12:25 PM, Mark Volkmann &
ide. I think
> the current behavior (using a default width if the reported width seems
> incorrect) will help more people than it hurts.
>
> On Fri, Sep 1, 2017 at 8:45 AM Mark Volkmann <r.mark.volkm...@gmail.com>
> wrote:
>
>> I'm trying to make my fish_prompt function intellig
, but when I do I want to handle it
and not just have a ">" prompt.
On Fri, Sep 1, 2017 at 8:38 AM, David Adam <zanc...@ucc.gu.uwa.edu.au>
wrote:
> On Fri, 1 Sep 2017, Dave Cottlehuber wrote:
> > On Fri, 1 Sep 2017, at 14:52, Mark Volkmann wrote:
> > > I'm working in
I'm working in iTerm2 on a Mac.
Entering "echo $COLUMNS" gives the correct value at most window widths.
However, if the width is less than 20, it always reports 80.
Can anyone else reproduce this issue?
--
R. Mark Volkmann
Object Comp
Ah, I was looking for something like "set --show". Thanks Kurtis!
Do you know approximately when Fish 2.7 will be released?
On Sun, Aug 27, 2017 at 1:39 PM, Kurtis Rader <kra...@skepticism.us> wrote:
> On Sun, Aug 27, 2017 at 6:04 AM, Mark Volkmann <r.mark.volkm
to pass the
-l switch through to bc.
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link
in a specific scope, but is there a way
to get all the values?
---
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link
Is is correct to say that in fish all variable values are strings?
For example,
set pi 3.1415928
string length $pi # 9
Is that because the value is actually stored as a string or
does it convert it from a number to a string when "string length" is called
on it?
--
R. Mark Volkm
> On Aug 24, 2017, at 8:04 AM, David Adam <zanc...@ucc.gu.uwa.edu.au> wrote:
>
>> On Wed, 23 Aug 2017, Mark Volkmann wrote:
>> I want to make sure I understand when this should be used. Is this correct?
>>
>> PATH should be configured in config.fish.
>&
It turns out that if I define "rm" as an abbreviation instead of an alias,
this problem goes away.
On Sun, Aug 20, 2017 at 5:11 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
wrote:
> You are correct. I have this in my config.fish:
>
> alias rm 'rm -i'
>
> I
in $listName
end
end
set -g colors red green blue
listrm colors green
# The value of colors is not changed.
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
would be look at my
config.fish rather echoing fish_user_paths.
Looking for clarification
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites
So glad to see that associative arrays are targeted for fish 3!
On Sun, Aug 20, 2017 at 5:15 PM, Kurtis Rader <kra...@skepticism.us> wrote:
> On Sun, Aug 20, 2017 at 2:42 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
> wrote:
>
>> I hope I'm not being too annoying
Perfect! That's what I was looking for.
On Sun, Aug 20, 2017 at 5:21 PM, Kurtis Rader <kra...@skepticism.us> wrote:
> On Sun, Aug 20, 2017 at 6:02 AM, Mark Volkmann <r.mark.volkm...@gmail.com>
> wrote:
>
>> What is the recommended way to write out error messages
On Sun, Aug 20, 2017 at 5:15 PM, Kurtis Rader <kra...@skepticism.us> wrote:
> On Sun, Aug 20, 2017 at 2:42 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
> wrote:
>
>> I hope I'm not being too annoying with all the questions I've been
>> asking. Obviously I
probably shouldn't know about. Maybe a switch could be added to
funced to tell it to use "rm -f" for removing the temporary so doing that
is optional.
On Sun, Aug 20, 2017 at 10:15 AM, Kurtis Rader <kra...@skepticism.us> wrote:
> On Sun, Aug 20, 2017 at 4:49 AM, Mark Volkmann <r.m
What is the recommended way to write out error messages from a fish
function so they appear in the color that has been configured for error
messages (typically red)? It seems simply writing to stderr is not the
answer.
--
R. Mark Volkmann
Object Computing, Inc
How old is fish?
Looking at the GitHub repo I see the oldest release there was on
10/22/2005. Were there earlier versions somewhere else?
Who were the original creators?
--
R. Mark Volkmann
Object Computing, Inc
On Sat, Aug 19, 2017 at 9:33 PM, Kurtis Rader <kra...@skepticism.us> wrote:
> On Sat, Aug 19, 2017 at 6:42 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
> wrote:
>
>> These are really cool utilities!
>> Let's see if I understand them correctly.
>> I
funcsave foo" again.
I was expecting that funced might realize the function was already saved to
a file and save the changes there. Either that or I thought there would be
a switch on funced to tell it to do that.
I'm curious why neither of those is t
On Sat, Aug 19, 2017 at 9:02 AM, Greg Reagle <greg.rea...@umbc.edu> wrote:
> On Sat, Aug 19, 2017, at 09:59, Mark Volkmann wrote:
> > Removing the parens causes it to output "at line number status
> current-line-number".
> >
> > On Sat, Aug 19, 2017 at 8:
Removing the parens causes it to output "at line number status
current-line-number".
On Sat, Aug 19, 2017 at 8:23 AM, Greg Reagle <greg.rea...@umbc.edu> wrote:
> On Sat, Aug 19, 2017, at 08:37, Mark Volkmann wrote:
> > I'm doing this inside a function:
> > echo
ot;myfn".
But I cannot run it in the background with "myfn &".
Also, if I'm running a long running function, I can't move it to the
background with ctrl-z.
Why are those not supported?
--
R. Mark Volkmann
Object Computing, Inc.
--
I'm doing this inside a function:
echo at line number (status current-line-number)
But no matter where I put this in my function, it always outputs 2.
Am I using it incorrectly?
--
R. Mark Volkmann
Object Computing, Inc
of the change?
The delay seems to be about two seconds.
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link
ri, Aug 18, 2017 at 3:25 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
> wrote:
>
>> What's the best way to provide a default value for a function parameter?
>> For example, suppose I have a function like this:
>>
>> function greet -a name language
>> swi
echo unsupported language $language
end
end
If it is called with "greet Bob", I want language to default to 'english'.
--
R. Mark Volkmann
Object Computing, Inc.
--
Check out the vibrant tech community on one
How is the value of --description for a function used?
Is there some command where I can ask for the description of a given
function?
Is there a way to cause the description to be displayed as part of tab
completion?
--
R. Mark Volkmann
Object Computing, Inc
63 matches
Mail list logo