Setting up terminal on Mac OS

iTerm2

This app is (likely) the best terminal emulator for Mac OS out there.

https://iterm2.com/downloads/stable/latest

You can change default tabs view in Preferences → Apperance → Theme: Minimal.

From time-to-time I give alternative terminal emulators a try. For example alacritty provides stunning render performance.

Color theme

Snazzy is nice and calm color theme by sindresorhus:

Right-click Snazzy.itermcolors and choose Save Link As….

Double-click the downloaded file.

Also I recommend to check out monokai.pro:

Homebrew

Most popular package manager for Mac OS. You will need it to install other stuff.

sh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

JetBrainsMono font

This font designed specifically for developers and it grew on me quite well. You can install original version from brew, but for nice icons in terminal you sould install Nerd version of this font:

brew tap homebrew/cask-fonts
brew install --cask font-jetbrains-mono-nerd-font

Oh My ZSH!

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

There are quite a number of bundled plugins in Oh-My-Zsh, but most useful for me is not installed by default.

zsh-syntax-highlighting and zsh-autosuggestions make your input much more visually responsive (if there is no such command it will turn red, etc).

brew install zsh-syntax-highlighting zsh-autosuggestions
echo "source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
echo "source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc

exa

Nice replacement of standard ls command. It highlihgts sizes, can draw nice tree view of a folder.

brew install exa

You can saflely replace ls with exa in most of use cases.

echo "alias ls='exa'" >> ~/.zshrc
echo "alias la='ll --all'" >> ~/.zshrc

Starship

The best shell prompt. Fast, modular and nice looking. Also quite easy to install:

brew install starship

After installation you should add init line at the end of ZSH config file:

echo "eval \"$(starship init zsh)\"" >> ~/.zshrc

© 2021 floatdrop@gmail.com