Skip to content

Instantly share code, notes, and snippets.

@leymannx
Last active May 5, 2024 13:53
Show Gist options
  • Save leymannx/598e0e92722f47cfb31daa7cf9f9a817 to your computer and use it in GitHub Desktop.
Save leymannx/598e0e92722f47cfb31daa7cf9f9a817 to your computer and use it in GitHub Desktop.
iTerm2 Solarized Dark theme + Fish shell + oh-my-fish /// macOS High Sierra

Screenshot

Install iTerm 2

Download, unzip and drag to your Applications directory.

https://www.iterm2.com/downloads.html

Install Fish

brew install fish

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

iTerm2 > Preferences > Profiles > General > Basics / Name: fish > Command: /usr/local/bin/fish

Restart iTerm2

Install oh-my-fish

curl -L https://github.com/oh-my-fish/oh-my-fish/raw/master/bin/install | fish

Install oh-my-fish agnoster package

omf install agnoster

Restart iTerm2

git clone https://github.com/powerline/fonts.git --depth=1

cd fonts

./install.sh

cd ..

rm -rf fonts

iTerm2 > Preferences > Profiles > Text > Font > Change Font > 14pt Meslo LG M Regular for Powerline

Restart iTerm2

Solarized Dark iTerm2 theme

Save Link As ... > https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Solarized%20Dark%20-%20Patched.itermcolors

Double Click

iTerm2 > Preferences > Profiles > Colors > Color Presets > Solarized Dark - Patched

Restart iTerm2

Credits

https://jmolivas.weknowinc.com/improve-your-shell-using-fish-and-oh-my-fish

https://gist.github.com/kevin-smets/8568070

http://ethanschoonover.com/solarized

https://github.com/oh-my-fish/oh-my-fish/blob/master/docs/Themes.md#agnoster

https://fishshell.com/docs/current/tutorial.html

https://fishshell.com/docs/current/index.html

@Joshfairhead
Copy link

Joshfairhead commented Jan 9, 2021

iTerm2 > Preferences > Profiles > General > Basics / Name: fish > Command: /usr/local/bin/fish

This command is too early in the process. If you restart iTerm your in fish and can't install OMF. Typing bash here gets to a bash shell but won't pipe int the OMF file. The solution was to get rid of the fish command in iTerm and then follow the instructions, putting back the fish path in preferences after. Hope this is useful for the still terminal illiterate like myself :)

EDIT: Also, having gone through the process now, my colour scheme doesn't seem to match the screen shot.

@shubham-shiprocket
Copy link

for me it works great...Thanks

@thanhtrung5763
Copy link

Homebrew may install fish at a different path. Try running which fish and replace /usr/local/bin/fish with its output.

@aaronholt1066
Copy link

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

seems to be this command that doesn't work for me as when i check that directory, fish is not there. brew install fish works fine, its just that next section that i fall over on. Any tips?
thanks

@LukeAtAutomationTesting
Copy link

Instead of /usr/local/bin/fish I used just fish as a path and it worked for me.

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