echo "syntax on\nset nu\n" >> ~/.vimrc
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
sed -i '' "s/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/g" ~/.zshrc
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
sed -i '' "s/robbyrussell/powerlevel10k\/powerlevel10k/g" ~/.zshrc
source ~/.zshrc
p10k configure
Then follow the instructions from p10k to customize your shell. Last, quit (CMD+Q) and re-start.
Explaining above
- Turn on line numbers and syntax highlighting for vim
- run ohmyzsh install script
- Download the autosuggestion extension
- Download the syntax highlighting extension
- Add those plugins to the zshrc
- Clone the powerlevel10k theme
- Set your ohmyzsh theme to p10k
- Reload zsh profile
- Run the powerlevel10k wizard
I like seeing the tabs in fullscreen, but I want them to be black/transparent, not the default white. Enable (if disabled) with (CMD+shift+T)
Change the tab style:
- iTerm2 -> Settings -> Appearances -> General -> Theme: Minimal
- iTerm2 -> Settings -> Profiles -> Colors -> Uncheck the "Tab Color" radio button
- iTerm2 -> Settings -> Advanced -> Mouse -> "Scroll wheel sends arrow keys when in alternate screen mode": Yes
- This is what lets you scroll naturally in vim