Mac terminal environment setup - zsh + Powerline + tmux
Powerline font
Install nerd-font or powerline font.
- Nerd-font
brew tap homebrew/cask-fonts
brew cask install font-hack-nerd-font
- Powerline fonts
# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
Oh My Zsh
Install Zsh.
brew install wget
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
Change default zsh theme. You can see all the themes here or using powerlevel10k theme.
- ohmyzsh themes
vim ~/.zshrc
> ZSH_THEME="agnoster"
- powerlevel10k theme
brew install romkatv/powerlevel10k/powerlevel10k
echo 'source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
After setup, enter the following command to apply the configuration.
exec $SHELL
Insecure Problme fix:
# [oh-my-zsh] Insecure completion-dependent directories detected:
chmod 755 /usr/local/share/zsh
chmod 755 /usr/local/share/zsh/site-functions
tmux enviroment setup
Install tmux via HomeBrew
brew install tmux
enviroment setup
cd
rm -rf .tmux
git clone https://github.com/gpakosz/.tmux.git
ln -s .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .
tmux source-file ~/.tmux.conf
Comments
Post a Comment