Introduction ¶
Extensive UI : Syntax highlighting , Autosuggestions , tab completion and selection lists that can be navigated and filtered. No configuration needed : fish is designed to be ready to use immediately, without requiring extensive configuration. Easy scripting : New functions can be added on the fly. The syntax is easy to learn and use.
Where to go? ¶
Installation ¶
Installation ¶
Starting and Exiting ¶
Type fish to start a shell: > fish Type exit to end the session: > exit
Default Shell ¶
Add the shell to /etc/shells with: > echo /usr/local/bin/fish | sudo tee -a /etc/shells Change your default shell with: > chsh -s /usr/local/bin/fish
Uninstalling ¶
Shebang Line ¶
#!/ bin/bash
#!/ usr/bin/env fish
echo Hello from fish $version
Configuration ¶
Examples: ¶
if status --is-login
set -gx PATH $PATH ~ /linux/bin
end
function on_exit --on-event fish_exit
echo fish is now exiting
end
Resources ¶
The GitHub page The official Gitter channel The official mailing list at fish-users@lists.sourceforge.net