Skip to main content

Questions tagged [fish]

Fish is a unix shell with a clean design and a limited but powerful feature set.

1 vote
1 answer
77 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, ...
Simone Manganelli's user avatar
5 votes
1 answer
273 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 ...
enzotib's user avatar
  • 53.4k
3 votes
1 answer
190 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 ...
PseudoMagnifique's user avatar
-1 votes
1 answer
239 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 *....
John Kravicz's user avatar
-2 votes
1 answer
56 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 ...
jsx97's user avatar
  • 1,357
0 votes
1 answer
47 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 ...
rakim0's user avatar
  • 3
1 vote
1 answer
349 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 ...
jsx97's user avatar
  • 1,357
2 votes
1 answer
420 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 ...
jsx97's user avatar
  • 1,357
-1 votes
1 answer
90 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: - (...
jsx97's user avatar
  • 1,357
1 vote
1 answer
556 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 ...
ckhatton's user avatar
  • 121
0 votes
1 answer
116 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 ...
jsx97's user avatar
  • 1,357
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 ...
jsx97's user avatar
  • 1,357
0 votes
1 answer
266 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-...
Sven Voigt's user avatar
0 votes
0 answers
208 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 ...
StephPe71's user avatar
0 votes
0 answers
118 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 ...
JEMEL ELYES's user avatar

15 30 50 per page
1
2 3 4 5
18