-
Install Brew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install iTerm2 with Brew:
brew install --cask iterm2
And then change iTerm2 preferences:
- iTerm2 Preferences -> Profiles -> Keys -> Key Mappings -> Open
Presets...
and selectNatural Text Editing
. - iTerm2 Preferences -> Profiles -> Window -> Set
Columns
to150
(or so). - iTerm2 Preferences -> Profiles -> Colors -> Open
Color Presets...
and choose the one you like.
- iTerm2 Preferences -> Profiles -> Keys -> Key Mappings -> Open
-
Install Oh My Zsh:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
Install plugins:
-
brew install zsh-syntax-highlighting echo 'source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
-
brew install zsh-autosuggestions echo 'source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
-
brew install zsh-history-substring-search echo 'source /opt/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh' >> ~/.zshrc
-
brew install zsh-completions cat >> ~/.zshrc << EOF if type brew &>/dev/null; then FPATH=$(brew --prefix)/share/zsh-completions:$FPATH autoload -Uz compinit compinit fi EOF
-
-
Install Powerlevel10k:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
And then set
ZSH_THEME="powerlevel10k/powerlevel10k"
in~/.zshrc
. -
Finish configuring Powerlevel10k and use.
Created
November 4, 2022 07:30
-
-
Save MihailPreis/b5c7db640e06811f151d8a36a7d94790 to your computer and use it in GitHub Desktop.
Convenient terminal setup for mac
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment