To install the package for fish using pacman (the package is in the community repo)

+

To install the package for fish using pacman (the package is in the community repository)

run:

run:

# pacman -S fish

# pacman -S fish

Line 26:

Line 22:

gnome-terminal -e fish

gnome-terminal -e fish

+

+

With LilyTerm and other light terminal emulators that don't support setting the shell it would look like this:

+

+

SHELL=/usr/bin/fish lilyterm

Another option is to set fish as the default shell for the terminal in the terminal's configuration or for a terminal profile if your terminal emulator has a profiles feature. This is contrast to changing the default shell for the user which would cause the above mentioned problem.

Another option is to set fish as the default shell for the terminal in the terminal's configuration or for a terminal profile if your terminal emulator has a profiles feature. This is contrast to changing the default shell for the user which would cause the above mentioned problem.

Line 67:

Line 67:

end

end

end

end

+

+

If su starts with bash (because bash is the default shell), define a function in fish:

+

~> funced su

+

su> function su

+

/bin/su --shell=/usr/bin/fish $argv

+

end

+

~> funcsave su

+

+

Some useful tab completion scripts that are not included into the official fish package:

+

* https://github.com/esodax/fishystuff

+

* http://gitorious.org/fish-nuggets

== Current state of fish development ==

== Current state of fish development ==

−

The original developer, Axel Liljencrantz has seemingly abandoned the project, the [http://fishshell.org/darcs/fish official darcs repository] hasn't been touched since March 2009. The rest of his team slowly took over and transferred the codebase to gitorius: http://gitorious.org/fish-shell

+

The original developer, [https://github.com/liljencrantz Axel Liljencrantz] has [http://www.mail-archive.com/fish-users@lists.sourceforge.net/msg02893.html abandoned the project]. The rest of his team slowly took over and transferred the codebase to [http://gitorious.org/fish-shell gitorius].

+

+

So far several bug fixes are available from the git repository. Also, there is an AUR package for the git master branch, which is considered stable for everyday use: {{AUR|fish-git}}.

−

So far several bug fixes are available from the git repository. Also, there is an AUR package for the git master branch, which is considered stable for everyday use: [http://aur.archlinux.org/packages.php?ID=43684 fish-git].

+

On May 30, 2012 [http://ridiculousfish.com/shell/ ridiculous_fish] has [http://www.mailinglistarchive.com/html/fish-users@lists.sourceforge.net/2012-05/msg00004.html announced] a new fork of fish which [http://www.mailinglistarchive.com/html/fish-users@lists.sourceforge.net/2012-05/msg00023.html has been adopted] as mainstream later, and development is now relocated to [https://github.com/fish-shell/fish-shell github]. The AUR package {{AUR|fish-shell-git}} follows the head branch of that, while the fish package in the [community] repository provides latest stable milestones as announced on the webpage.

−

Development has been [http://www.mail-archive.com/fish-users@lists.sourceforge.net/msg02540.html started again] on fish, don't expect big changes though in the near future.

Contents

Installation instructions

To install the package for fish using pacman (the package is in the community repository)
run:

# pacman -S fish

To verify that it has been installed you can run:

$ less /etc/shells

If you wanted to make fish your default shell run:

$ chsh -s /usr/bin/fish

Pacman and fish

Context-aware completions for pacman and makepkg are built into fish, since the policy of the fish development is to include all the existent
completions in the upstream tarball. The memory management is clever enough to avoid any negative impact on resources.

Troubleshooting

In arch, there are a lot of shell scripts written for bash, and these have not been translated to fish. It is advisable not to set fish as your default shell because of this. The best option is to open your terminal emulator (gnome-terminal, konsole, sakura, etc...) with a command line option that executes fish. For most terminals this is the -e switch, so for example, to open gnome-terminal using fish, change your shortcut to use:

gnome-terminal -e fish

With LilyTerm and other light terminal emulators that don't support setting the shell it would look like this:

SHELL=/usr/bin/fish lilyterm

Another option is to set fish as the default shell for the terminal in the terminal's configuration or for a terminal profile if your terminal emulator has a profiles feature. This is contrast to changing the default shell for the user which would cause the above mentioned problem.

To set fish as the shell started in tmux, put this into your .tmux.conf:

set-option -g default-shell "/usr/bin/fish"

Not setting fish as system wide default allows the arch scripts to run on startup, ensure the environment variables are set correctly, and generally reduces the issues associated with using a non-bash compatible terminal like fish.

If you decide to set fish as your default shell, you may find that you no longer have very much in your path.
You can add a section to your ~/.config/fish/config.fish file that will set your path correctly on login. This is much like .profile or .bash_profile as it is only executed for login shells.

if status --is-login
set PATH $PATH /usr/bin /sbin
end

Note that you will need to manually add various other environment variables, such as $MOZ_PLUGIN_PATH. It is a huge amount of work to get a seamless experience with fish as your default shell.

Configuration Suggestions

If you would like fish to display the branch and dirty status when you are in a git directory, you can add the following to your ~/.config/fish/config.fish:

Current state of fish development

So far several bug fixes are available from the git repository. Also, there is an AUR package for the git master branch, which is considered stable for everyday use: fish-gitAUR.

On May 30, 2012 ridiculous_fish has announced a new fork of fish which has been adopted as mainstream later, and development is now relocated to github. The AUR package fish-shell-gitAUR follows the head branch of that, while the fish package in the [community] repository provides latest stable milestones as announced on the webpage.