[Fish-users] My fish article is ready!

2017-11-01 Thread Mark Volkmann
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

[Fish-users] fish equivalent of bash "set -x"

2017-10-29 Thread Mark Volkmann
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

Re: [Fish-users] first draft for fish article

2017-10-29 Thread Mark Volkmann
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

Re: [Fish-users] first draft for fish article

2017-10-28 Thread Mark Volkmann
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

Re: [Fish-users] first draft for fish article

2017-10-28 Thread Mark Volkmann
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,

[Fish-users] a builtin AND a function?

2017-10-23 Thread Mark Volkmann
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. --

[Fish-users] expr command

2017-10-23 Thread Mark Volkmann
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

[Fish-users] dirh numbers

2017-10-20 Thread Mark Volkmann
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

Re: [Fish-users] Rationale for not using && and ||

2017-10-18 Thread Mark Volkmann
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

[Fish-users] shortening long switch names

2017-10-10 Thread Mark Volkmann
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

[Fish-users] fish 2.7

2017-10-08 Thread Mark Volkmann
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

Re: [Fish-users] question about command history for article

2017-10-08 Thread Mark Volkmann
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...@

Re: [Fish-users] question about command history for article

2017-10-08 Thread Mark Volkmann
> 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

Re: [Fish-users] question about command history for article

2017-10-07 Thread Mark Volkmann
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

Re: [Fish-users] question about command history for article

2017-10-07 Thread Mark Volkmann
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: > > > >

[Fish-users] question about command history for article

2017-10-07 Thread Mark Volkmann
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

Re: [Fish-users] first draft for fish article

2017-10-06 Thread Mark Volkmann
.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. -

Re: [Fish-users] first draft for fish article

2017-10-06 Thread Mark Volkmann
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!

[Fish-users] first draft for fish article

2017-10-05 Thread Mark Volkmann
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

Re: [Fish-users] fish_prompt.fish not getting called

2017-09-30 Thread Mark Volkmann
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

Re: [Fish-users] fish_prompt.fish not getting called

2017-09-30 Thread Mark Volkmann
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 >

[Fish-users] fish_prompt.fish not getting called

2017-09-30 Thread Mark Volkmann
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.

[Fish-users] fish 2.0 release date

2017-09-30 Thread Mark Volkmann
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

[Fish-users] command history

2017-09-29 Thread Mark Volkmann
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

[Fish-users] string functions on strings that start with a dash

2017-09-24 Thread Mark Volkmann
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

[Fish-users] running functions in background

2017-09-24 Thread Mark Volkmann
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,

Re: [Fish-users] set_color --dim

2017-09-23 Thread Mark Volkmann
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

[Fish-users] set_color --dim

2017-09-21 Thread Mark Volkmann
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

Re: [Fish-users] commands that do not set status

2017-09-18 Thread Mark Volkmann
> 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

[Fish-users] commands that do not set status

2017-09-17 Thread Mark Volkmann
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

Re: [Fish-users] ridiculousfish

2017-09-11 Thread Mark Volkmann
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

Re: [Fish-users] ridiculousfish

2017-09-11 Thread Mark Volkmann
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

[Fish-users] ridiculousfish

2017-09-10 Thread Mark Volkmann
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

[Fish-users] comparing strings in fish

2017-09-03 Thread Mark Volkmann
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

[Fish-users] functions generated by alias command

2017-09-02 Thread Mark Volkmann
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

Re: [Fish-users] bug in computing COLUMNS?

2017-09-01 Thread Mark Volkmann
"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 &

Re: [Fish-users] bug in computing COLUMNS?

2017-09-01 Thread 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

Re: [Fish-users] bug in computing COLUMNS?

2017-09-01 Thread Mark Volkmann
, 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

[Fish-users] bug in computing COLUMNS?

2017-09-01 Thread Mark Volkmann
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

Re: [Fish-users] Variable scopes

2017-08-27 Thread Mark Volkmann
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

[Fish-users] bc and math functions

2017-08-27 Thread Mark Volkmann
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

[Fish-users] Variable scopes

2017-08-27 Thread Mark Volkmann
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

[Fish-users] variable types

2017-08-26 Thread Mark Volkmann
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

Re: [Fish-users] fish_user_paths

2017-08-24 Thread Mark Volkmann
> 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. >&

Re: [Fish-users] funced and funcsave

2017-08-24 Thread Mark Volkmann
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

[Fish-users] removing a list item in a function

2017-08-23 Thread Mark Volkmann
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

[Fish-users] fish_user_paths

2017-08-23 Thread Mark Volkmann
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

Re: [Fish-users] why all the questions?

2017-08-20 Thread Mark Volkmann
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

Re: [Fish-users] writing error messages

2017-08-20 Thread Mark Volkmann
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

Re: [Fish-users] why all the questions?

2017-08-20 Thread Mark Volkmann
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

Re: [Fish-users] funced and funcsave

2017-08-20 Thread Mark Volkmann
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

[Fish-users] writing error messages

2017-08-20 Thread Mark Volkmann
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

[Fish-users] history of fish

2017-08-20 Thread Mark Volkmann
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

Re: [Fish-users] funced and funcsave

2017-08-20 Thread Mark Volkmann
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

[Fish-users] funced and funcsave

2017-08-19 Thread Mark Volkmann
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

Re: [Fish-users] status current-line-number

2017-08-19 Thread Mark Volkmann
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:

Re: [Fish-users] status current-line-number

2017-08-19 Thread Mark Volkmann
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

[Fish-users] functions as commands

2017-08-19 Thread Mark Volkmann
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. --

[Fish-users] status current-line-number

2017-08-19 Thread Mark Volkmann
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

[Fish-users] timing of function updates

2017-08-19 Thread Mark Volkmann
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

Re: [Fish-users] default function parameters

2017-08-18 Thread Mark Volkmann
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

[Fish-users] default function parameters

2017-08-18 Thread Mark Volkmann
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

[Fish-users] use of function --description

2017-08-17 Thread Mark Volkmann
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