Back to a vanilla (fish) shell
- Updated on 2024-09-06: Since
exa
is no longer maintained, we need to add the following in~/.config/fish/config.fish
instead:
if type -q eza
alias ll "eza -l -g --icons"
alias lla "ll -a"
end
- Decided to say goodbye to oh-my-zsh after a decade and pursue the pure joy of simplicity.1
- Uninstalled oh-my-zsh with
uninstall_oh_my_zsh
. (This is handy, I’ll give it that.) - Installed fish from Homebrew
brew install fish
- Followed this gist to set
fish
as default shell. The documentation might be outdated since the default path to fish is now different:/opt/homebrew/bin/fish
. Thanks to macOS’s updates in recent years. - Added the list of “known shells”:
sudo sh -c 'echo /opt/homebrew/bin/fish >> /etc/shells'
- Restarted the CLI and ran command:
chsh -s /opt/homebrew/bin/fish
. - Restarted the CLI and added brew binaries in fish path:
fish_add_path /opt/homebrew/bin
- Added a few aliases frequently used in
~/.config/fish/config.fish
. - Added a snippet to use
exa
eza
easily. Credit to Ruihao Li. - Used
cmd+shift+p
in VSC to installcode
command inPATH
. - Used
fish_config
to customize my shell prompt.
Now I’m in peace now.