fish config code example
Example 1: source fish config
echo 'source ~/.profile;clear;' > ~/.config/fish/config.fish
Example 2: change default shell fish
> echo /usr/local/bin/fish | sudo tee -a /etc/shells
> chsh -s /usr/local/bin/fish
echo 'source ~/.profile;clear;' > ~/.config/fish/config.fish
> echo /usr/local/bin/fish | sudo tee -a /etc/shells
> chsh -s /usr/local/bin/fish