My simple config for quick setup on a Mac OS.
From official website:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Download and install iTerm2. Forget about MacOS default terminal.
Set up ohmyz.sh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Install your favourite font with powerline patch: https://github.com/powerline/fonts (I love Inconsolata)
In ~/.zshrc
change ZSH_THEME="..."
to ZSH_THEME="agnoster"
There are some crucial settings you will absolutely love in iTerm2:
- Natural Text Editing (enables usual MacOS shortcuts for navigating the command line
- Set Font (which was installed above) and size in (Open Preferences > Profiles > Text)
- Set vertical cursor (Open Preferences > Profiles > Text)
- Know about built-in tmux integration (just use
tmux -CC
) - Solarized Dark colors (Open Preferences > Profiles > Colors > Color Presets... > Solarized Dark)
- iTerm2 > Install Shell integration. When shell integration is enabled, iTerm2 automatically adds a mark at each command prompt. You can navigate marks with Cmd-Shift-Up and Down-arrow keys.
- tmux settings:
curl https://raw.githubusercontent.com/gkorepanov/Mac-OS-Settings/master/.vimrc -o ~/.vimrc
https://gitlab.com/gnachman/iterm2/-/wikis/tmux-Integration-Best-Practices
brew install MisterTea/et/et
brew install xxh
xxh +I xxh-plugin-prerun-core
xxh +I xxh-shell-zsh
xxh +I xxh-plugin-prerun-dotfiles
xxh +I xxh-plugin-zsh-ohmyzsh
Now just use
xxh +s zsh +if <my_server>
instead ssh <my_server>