Questions tagged [fish]

Fish is a command line shell. Its syntax is not based on the Bourne shell or the C shell.

Fish (short for "friendly interactive shell") is a command line shell first released in 2005. It is an exotic shell, meaning its syntax is different from Bourne-style shells like Bash, Dash, and Zsh, and from C-style shells like tcsh.

79 questions
167
votes
5 answers

How do I set fish as the default shell?

Is there a way to set fish as the default shell in ubuntu netbook remix? I put in my .bashrc to run fish, which works fine, but ubuntu recognizes it as fish running inside bash, which means that when I try to close the shell it warns me that a task…
Xodarap
  • 1,969
61
votes
2 answers

How to add exports to fish like in .bashrc?

I just wanted to be able to add inside some fish configuration file (don't know which/where) the same function as this: export PERL5LIB=/home/iaco/workspace/perl:/home/iaco/devtools This line was added inside the .bashrc file and it was able to…
user13748
27
votes
1 answer

Where should I find the fish_add_path command?

After a system updated my fish shell prompt is no longer working. Whenever I open a terminal I get this error: /usr/share/fish/vendor_conf.d/snapd.fish (line 3): fish_add_path -aP $snap_bin_path ^ from sourcing file…
lofidevops
  • 21,912
13
votes
3 answers

Change default shell when user not in /etc/passwd

Any ideas on how can I change the shell to fish? $ sudo usermod -s /usr/bin/fish jaan usermod: user 'jaan' does not exist in /etc/passwd $ getent passwd $USER jaan:x:15466:94:Jaan A:/home/jaan:/bin/zsh Related questions: user does not exist in…
13
votes
1 answer

Exit from fish shell

I have Fish setup as my default shell. I want to exit from fish to bash. How can I do that with opened fish shell?
12
votes
5 answers

How to get color man pages under fish shell?

There seems to be a way to get man pages to display in color (see here. It involves setting environment variables associated with less and adding these definitions to .bashrc. I tried doing the same in config.fish for the fish shell, but got no…
11
votes
1 answer

fish shell: "shopt -s dotglob" analog

I'm trying to migrate from bash to fish. What is the fish's analog to shopt? I'm trying to imitate this line from my .bashrc: shopt -s dotglob # for mv * see hidden files
netimen
  • 537
11
votes
1 answer

How to remove the time stamp on the right side of the fish shell?

Simple question, I'd like to remove the time stamp on the right hand side of the fish shell terminal screen: On a sidenote, it would be even better to know how to customize it as in the image below:
mickkk
  • 517
10
votes
3 answers

Windows CMD for Linux?

Let us assume that I am not in my right mind, as no one who has used a good shell like bash, fish or oh (or any of the other shells listed here) would want this. Nevertheless, seeing as one can have bash on Windows, has anyone tried to create…
bugmagnet
  • 327
9
votes
1 answer

How can I bind my capslock key to a fish shell command, and disable its toggle-caps functionality?

I have recently switched to fish shell, and its autocomplete is really nice. However, I find myself wanting to use tab to use the complete_autocomplete feature, as opposed to when it's unambiguous. The forward and end keys both do this, but they're…
7
votes
3 answers

Why do snap packages disappear when using the Fish shell?

If I take a clean install of Ubuntu 17.10, install a package via snap, and change my shell to fish, after logging in again the package is missing from gnome-shell's menu and from my favorites list. Weirdly, this also only happens when using…
Ken Kinder
  • 4,250
7
votes
1 answer

Automatically running tmux in fish

I've recently changed my default shell to fish (from bash). I had tmux set up to run automatically whenever I opened the console with bash, but I'm not sure how to set it up with fish. I tried putting [[ $TERM != "screen" ]] && exec tmux in…
Luke_0
  • 187
7
votes
2 answers

Differences between fish and bash to pass commandline arguments to alias functions?

From the answers to my other question here i learned about the possibility to pass commandline arguments to a alias function in Bash. In Fish i can edit an alias by editing the file config.fish in ~/.config/fish directory and adding a line like…
NES
  • 33,935
6
votes
2 answers

Why is my default shell from /etc/passwd not started by terminals in a Unity session?

I'm trying to set fish as my default shell. It's installed on the system through apt-get and is listed in /etc/shells: > which fish /usr/bin/fish > grep fish /etc/shells /usr/bin/fish I used chsh to switch from Bash to fish: > chsh -s…
ohspite
  • 233
  • 2
  • 10
5
votes
1 answer

Fish Powerline with status line at the bottom of the shell

I am trying to figure out how this guys manage to have the status line at the bottom of fish-shell as he shared here. https://github.com/yongjhih/rc/blob/master/art/screenshot-fish-powerline.png I setup powerline using instruction from this…
1
2 3 4 5 6