- Install fish via Brew
- Optionally install Oh My Fish!
- Add fish to known shells
- Set default shell to fish
brew install fish
curl -L https://github.com/bpinto/oh-my-fish/raw/master/tools/install.fish | fish
sudo echo /usr/local/bin/fish >> /etc/shells
chsh -s /usr/local/bin/fishAdd any the following functions to ~/.config/fish/config.fish
Repeat previous command with administrator rights
function sudo
if test "$argv" = !!
eval command sudo $history[1]
else
command sudo $argv
end
endHow often did you type cd.. instead of cd ..?
function cd..
cd ..
end