Fish is a smart and user-friendly command line shell for macOS, Linux, and the rest of the family.
This details the installation of the Fish shell and making it the default shell for the user.
- Install the Fish (
fish
) package usingyay
.
-
Verify where the Fish shell is installed to by running:
which fish
This should output the full path to the Fish shell, such as
/usr/bin/fish
. -
Check if the path to the Fish shell is listed in
/etc/shells
by running:cat /etc/shells
If the path is not listed, add it to the file by running:
echo "$(which fish)" | sudo tee -a /etc/shells
Enter your
sudo
password when prompted. -
Change your default shell to Fish by running:
chsh -s "$(which fish)"
-
Restart your terminal or desktop to apply the changes.
This details an example, ideal configuration or profile for the Fish shell.
-
Create the Fish configuration directory (if not already exists) by running:
mkdir -p ~/.config/fish
-
Create a backup of the existing Fish configuration file by running:
mv ~/.config/fish/config.fish ~/.config/fish/config.fish.bak
-
Create a new Fish configuration file by running:
nano ~/.config/fish/config.fish
Copy the content of the sample config.fish file and paste it into the new fish configuration file.
-
Make your own modifications and add in your own values to the configuration file as you see fit, then save the file.
As it is, the configuration requires some dependencies that need to be installed first, including:
podman
and/ordocker
nano
vim
git
bat
lolcat
eza
yay
flatpak
distrobox
neofetch
python-virtualenv
rsync
shell-color-scripts
starship
visual-studio-code-bin
(yay
) orcom.visualstudio.code
(flatpak
) (Optional)kubectl
(Optional)arch-wiki-docs
andarch-wiki-lite
(Optional)helm
(Optional)yt-dlp
(Optional)tmux
(Optional)miniconda3
(Optional)
-
Restart your terminal or reload the new configuration to apply the changes:
source ~/.config/fish/config.fish