iTerm2's configs

tháng 10 21, 2021

Install and config iTerm2 on MacOS

iTerm2

Install Homebrew 

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew cask install iterm2
brew install zsh

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Add An Alias (Permanent Alias) and custom pwd

vi ~/.zshrc.
...
alias l='ls -lah'
alias sb='open -a /Applications/Sublime\ Text.app'
PROMPT='$fg[cyan]%m:$fg[yellow] %T %B%30<..<%~%b %(!.#.>) '