Skip to content

Instantly share code, notes, and snippets.

@leymannx
Last active May 5, 2024 13:53
Show Gist options
  • Star 90 You must be signed in to star a gist
  • Fork 20 You must be signed in to fork a gist
  • 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

@rinaldo-rex
Copy link

rinaldo-rex commented Apr 22, 2019

Thanks for this set of configurations! A default config for a developer. :)

And here's an addition if anybody's using VScode and want to make sure if they have to configure the integrated terminal. The settings go like this.

{
    "terminal.external.osxExec": "iTerm.app",
    "terminal.integrated.shell.osx": "/usr/local/bin/fish",
    "terminal.integrated.fontFamily": "Meslo LG M DZ for Powerline"
}

Ensure that you don't give Regular as part of the fontfamily's name; as explained on the vscode doc

@simibac
Copy link

simibac commented Feb 23, 2020

I suggest changing the default shell instead of running a separate command when starting iTerm.

chsh -s /usr/local/bin/fish

@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