Skip to content

Instantly share code, notes, and snippets.

@johnny-aroza
Last active March 19, 2021 09:48
Show Gist options
  • Select an option

  • Save johnny-aroza/94f214bd870648d2b4ac765ea50f3cbf to your computer and use it in GitHub Desktop.

Select an option

Save johnny-aroza/94f214bd870648d2b4ac765ea50f3cbf to your computer and use it in GitHub Desktop.
Make the command line fish & bobfish theme for linux N & mac

https://blog.devopscomplete.com/fishing-with-bob-the-fish-2decd3a2f87 https://medium.com/tuannguyendotme/set-up-the-fish-shell-on-mac-step-by-step-6a77bcb2687c

sudo apt-add-repository ppa:fish-shell/release-2
sudo apt-get update
sudo apt-get install fish git
// Add Fish to /etc/shells with the following command
echo `(which fish)` | sudo tee -a /etc/shells
//To set fish as default shell - takes affects after logout/login
chsh -s `which fish`
curl -L http://get.oh-my.fish | fish
omf install bobthefish

// Probably these font will not work in Ubuntu Gnome terminal
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v1.0.0/FiraCode.zip
sudo unzip FiraCode.zip -d /usr/local/share/fonts/
sudo fc-cache -fv

// in Gnome terminal, Glyphs like =,<, > will not be supported by Fura Code NF Regular, 
// so install Fira Mono For NerdFont Mono Regular
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v1.2.0/FiraMono.zip
sudo unzip FiraMono.zip -d /usr/local/share/fonts/
sudo fc-cache -fv
// Remove date from right side of fish shell
set -U theme_display_date no
set -U theme_nerd_fonts yes
// Abbreviate the git project directory when inside a git repo
set -U theme_project_dir_length 1

After executing the commands, change the font.

Open the Edit menu and click Profile Preferences Select Custom Font Select one of the installed Nerd Fonts (Fira Mono For NerdFont Mono Regular) - All Glyphs Gnome Terminal. Font Issue (Support for ligatures in terminal is bad) tonsky/FiraCode#247 tonsky/FiraCode#162

for mac execute this shell

brew install fish

echo /usr/local/bin/fish | sudo tee -a /etc/shells

chsh -s /usr/local/bin/fish

curl -L https://get.oh-my.fish | fish

omf install bobthefish

brew tap homebrew/cask-fonts

brew install font-Fira-Code-nerd-font

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment