Questions tagged [fish]
Fish is a unix shell with a clean design and a limited but powerful feature set.
267 questions
1 vote
1 answer
156 views
Using fish as default shell in Terminal on macOS causes .command files to fail
This question was previously asked here: https://stackoverflow.com/questions/74808784/after-switching-default-shell-command-file-just-opens-terminal However, I have found no reason for the behavior, ...
5 votes
1 answer
315 views
Differences between bash and fish read command
In bash, the following command printf 'foo bar\n' | { read a b; printf '<%s> <%s>\n' $a $b; } produces the output <foo> <bar> In fish, the following command printf 'foo ...
3 votes
1 answer
230 views
I rewrote Fish path and broke everything
I'm on MacOs and have been using the shell Fish for quite some time now (installed with Homebrew). Today, I wanted to install vcpkg. I followed the instructions on Microsoft website, and wanted to add ...
-1 votes
1 answer
343 views
Fish shell : characters not displayed correctly in prompt
I'm moving from bash to fish, and I've installed ilancosman/tide prompt. However, Some characters are not displayed correctly (cf. right part): What I've done : Install MesloLGS fonts by putting *....
-2 votes
1 answer
71 views
Where to store a file with abbr statements that is sourced from config.fish?
I have fish started from zsh. In my config.fish there is a line source ~/.config/fish/easy-tor.fish easy-tor.fish is simply a bunch of abbr statements to quickly turn command-line Tor and SOCKS5 ...
0 votes
1 answer
63 views
Fish Plugin: How to define variables and import them in a different file
I want to define the following variables: URL, Username and Password in variables.fish and then import and use it. Since this way I would just need to configure it at one place instead of modifying ...
1 vote
1 answer
430 views
Remove certain path from $PATH
To add something to $PATH in fish, I use fish_add_path -a ~/foo/bar Then fish adds ~/foo/bar to my ~/.config/fish/fish_variables: SETUVAR fish_user_paths:/Users/john/foo/bar Then, is it correct to ...
2 votes
1 answer
472 views
How is "set -g" really different from "set" on fish shell?
I am trying to understand how the set command works on fish shell. For example, to remove the greeting message, the fish manual suggests to: To empty the text, with the default greeting function: set ...
-1 votes
1 answer
95 views
zsh alias causes error if used in fish
I have the following aliases in my zsh: alias -- -='cd -' alias ..='cd ..' alias ...='cd ../..' When I switch to fish, by manually typing fish and pressing Return, the first alias causes an error: - (...
1 vote
1 answer
644 views
`Sessions should be nested with care. Unset $TMUX to force.` using Byobu and Fish load on boot
Since upgrading my server to Ubuntu 24.04 I keep being instantly logged out. When I connect with SSH, it just states [exited]. There seems to be no way of logging into my account anymore. It is a ...
0 votes
1 answer
162 views
Inheriting path modifications vs. Inheriting aliases
My login shell is zsh. I have added the following two lines to my .zprofile file: path+=$HOME/foobar123 alias foo='echo bar' Then, if I switch to bash or fish, by typing bash or fish and pressing ...
4 votes
2 answers
2k views
'exec fish' at the very bottom of my '.zshrc' - is it possible to bypass it?
I prefer to use the fish shell on macOS most of the time, but refrain to make it the login shell, because I think sometimes it may cause problems. So, I simply added exec fish at the very bottom of my ...
0 votes
1 answer
318 views
Trying to set a keyboard shortcut to the fish shell desktop application
How can one open the fish terminal with a keyboard shortcut like ctl-alt-t in the gnome desktop environment running on debian? Steps I have taken: Installed the fish shell and run it from gnome-...
0 votes
0 answers
237 views
Fish shell: Completion: how to define command sub-argument completion?
I would like if it is possible to define completion for sub arguments in fish Best explained w/ an example: $ somecmd -k foo[arg1,arg2,..argK,.,argN] -----------------------------^^^^ Cpmpletions for ...
0 votes
0 answers
135 views
All commands need Ctrl-c in Linux terminal
Each time I type a command in Linux terminal, the cursor doesn't go to a newline and I have to Ctrl-c in order to get a newline. I already tried the reset command but it doesn't work. This happened ...