Display hidden files on Finder
defaults write com.apple.finder AppleShowAllFiles TRUE;killall Finder
xcode-select --install
brew install --cask iterm2
brew install zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
brew install fzf
# To install useful key bindings and fuzzy completion (type [y] for all questions):
$(brew --prefix)/opt/fzf/install --all
sed -i '' 's/ZSH_THEME=.*/ZSH_THEME="powerlevel10k\/powerlevel10k"/' ~/.zshrc
sed -i '' 's/\(^plugins=([^)]*\)/\1 git nvm zsh-autosuggestions zsh-syntax-highlighting/' ~/.zshrc
- If Powerlevel10k configuration wizard is not strated automatically, run:
p10k configure
-
Answer propmts
-
Select Lean color style
-
Select Unicode character set
-
Select 256 colors
-
Edit terminal prompt elements in
.p10k.zsh
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
: Append context # user@hostname
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS
: Comment context
element line
- Download Dracula theme: https://draculatheme.com/iterm
- Install Dracula color profile on iTerm
- Go iTerm2 > Preferences > Advanced
- Turn on: Mouse > Scroll wheel sends arrow keys in alternate screen mode.
This will allow to jump between words and start/end of lines with keys opt
+ (left/right)-arrow
and cmd
+ (left/right)-arrow
accordingly.
- Go iTerm2 > Preferences > Profiles > Keys > Key Mappings
- Select
Presets...
> Natural Text Editing - Select
Keep
"terminal.integrated.fontFamily": "Hack Nerd Font"
---------------------
"terminal.integrated.fontFamily": "MesloLGS NF"