Questions tagged [fish]

The fish shell is an alternate shell, and scripting language, for *nix systems (including macOS). Its claim to fame is being an intuitive, user friendly, and efficient modern shell. Some key examples, per their own website, are enhanced syntax highlighting, completions and autosuggestions (automatically generated from man pages), high performance, and sane scripting.

Fish is a command-line shell designed to be both smart and user-friendly, with auto-suggestions, fully 256 color support, and web-based configuration. Packages for Fish exist for macOS and various flavors of Unix.

Features that differentiate it include rich syntax coloring, auto-completion of commands and arguments, and a high-performance, multithreaded implementation.

Resources

991 questions
-1
votes
1 answer

fish shell: ctrl-p is not working but ARROW UP is

I recently installed various fisher plugins and updated to fish 3.4.1 and now "ctrl-p" does not cycle through my commands anymore, but ARROW UP is still working. When I switch to the bash shell, ctrl-p is working. I observe the same behaviour in the…
Sebastian
  • 865
  • 5
  • 13
-1
votes
1 answer

disable fish shell showing env variable value on tab

Can I disable fish shell showing the values being shown on the screen when I type echo e.g $FOO . Current I see when I do $F I see my shell shows all the environment variables with F and then on the right said of my prompt it displays their…
Kamesh
  • 115
  • 11
-1
votes
1 answer

Fish Shell How to change the font colour of Auto-suggestion features?

is possible to change the font colours for the Auto-suggestion features in the fish shell terminal? I want to customize all of that on my own colour does you guy have any suggestion? Screenshot in my terminal
ham_k12
  • 11
  • 1
-1
votes
1 answer

Fish Shell : Set formatted string to variable

I want to open terminal with multiple instances of same server. For example, csshX server1 server1 server1 I'm trying to assign the formatted list of strings to single variable and use it in csshX. #!/usr/local/bin/fish set nmdat (echo 'server1 ' |…
Ram
  • 103
  • 6
-1
votes
1 answer

Compare command substitution string not null in fish

I'm trying to test if a git repository has the showuntrackedfiles option set to no. My first aproch was: if test (git config --get status.showuntrackedfiles) = no echo "hi" else echo "bye" end but this breaks if showuntrackedfiles is not…
Susensio
  • 820
  • 10
  • 19
-1
votes
1 answer

Is there a way to write regular matching in fish shell?

The files have a common pattern. feed_predict.data.4.202.0 feed_predict.mdl.4.202.0 feed_predict.so.4.202.0 feed_predict.xml.4.202.0 I want to move files in batches. for x in feed_predict{.*}4.202.0; //ls $x //nothing prints here sudo mv $x…
mariolu
  • 624
  • 8
  • 17
-1
votes
1 answer

Fail to set shell enviroment when part of value is empty on fish shell

I cannot set shell enviroment on fish shell. This seems to be a bug. $LIBRARY_PATH is initiated to empty value. Then append some value to $LIBRARY_PATH. From $status I see the command is successfully executed. But the result shows $LIBRARY_PATH is…
mariolu
  • 624
  • 8
  • 17
-1
votes
1 answer

Added function parameters to function

I have a function called auth and I want to have function parameters but I have no idea how to do that. The function parameters being username, and repo. I tried to do it the bash style but it didn't work, searching online didn't help much either.…
YJH16120
  • 419
  • 1
  • 4
  • 15
-1
votes
1 answer

Can you explain why error "permissions denied" is a common problem with fish uninstall?

What does it mean to 'unlink file'? I keep discovering many Fish files and folders on my macOs (local, shared, HD volume). It seems the installation places Fish everywhere but despite being the only main user of my iMac, I still get "permissions…
Bo Louie
  • 31
  • 1
  • 10
-1
votes
1 answer

How to start a bash session from fish

On Ubuntu, I have fish installed, and have it set as my default shell using chsh -s /usr/bin/fish. I would like to open a bash shell. Entering bash creates a new fish session. How can I open bash without ending my login session?
brandones
  • 1,847
  • 2
  • 18
  • 36
-1
votes
1 answer

In Fish, how do you tweak things around to match special key bindings?

Context So I finally give a try to Fish, and as one would expect I encounter some frictions due to differences with my usual routines. The most astonishing for me, as for many other, was the absence of the bang operator. I'm fine with the lose of…
psychoslave
  • 2,783
  • 3
  • 27
  • 44
-1
votes
1 answer

How do I use fish shell to read multiple lines of output into a single variable?

I think I'm misunderstanding something about using read in fish to extract multiline input. Here's my basic script: ~> ps -aux | grep python | awk '/anaconda2/ {print $2,$9}' 3113 10:11 6079 10:20 12266 14:06 14648 Apr01 23460 Apr01 23984…
pml
  • 484
  • 3
  • 12
-1
votes
2 answers

How would you write this script, which works perfectly as intended in bash, to work on fish shell?

GIT_COMMITTER_DATE="$(date)" git commit --amend --no-edit --date "$(date)" This works fine in bash, but I can't get it to run in fish shell. Can someone help me figure out what is the equivalent in fish shell? Thanks.
Echiban
  • 849
  • 2
  • 11
  • 21
-1
votes
2 answers

Create temporary file and edit contents and return the path to the file

I wish to create a temporary file using mktemp and then edit it's content after creation (using your preferred editor; I used micro) and then when finished i.e. saved/exited the process it should output path to the file to stdout/pipe/replace in…
user14492
  • 2,116
  • 3
  • 25
  • 44
-1
votes
1 answer

Check vagrant status with fish

I am trying to write a fish script that checks on the current vagrant status and does something based on it. A simple example would be: Check if vagrant is running, if yes do vagrant halt, if no do vagrant up. I have come up with something like: #…
ARAGATO
  • 11
  • 6