Download, compile and install commonly used software to a custom path.
- macOS Catalina 10.15.6 (19G73)
- MacBook Pro (13-inch, 2018, Four Thunderbolt 3 Ports)
- Processor 2.3 GHz Quad-Core Intel Core i5
- Memory 16 GB 2133 MHz LPDDR3
- Graphics Intel Iris Plus Graphics 655 1536 MB
Darwin 19.6.0 Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64
# configure setup path, you can put them into your `.bashrc` or `.zshrc`
# e.g. install git
# Install oh my zsh, Oh My Zsh is an open source, community-driven framework for managing your zsh configuration.
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Vundle, Vundle is short for Vim bundle and is a Vim plugin manager.
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
# Update config.
git clone https://github.com/YinminZhang/setup.git
cp vimrc ~/.vimrc && cp zshrc ~/.zshrc
source ~/.zshrc
After font config, the iTerm2 can display many icons.
First, we download fonts package.
brew tap homebrew/cask-fonts
brew cask install font-hack-nerd-font
Then, we config the font in iTerm2.
Preferences -> Profiles -> Open Profiles -> Edit Profiles -> Text
We can set image as iTerm2 background.
Preferences -> Profiles -> Open Profiles -> Edit Profiles -> Window
Status bar
Preferences -> Profiles -> Open Profiles -> Edit Profiles -> Session
Oh My Zsh is an open source, community-driven framework for managing your zsh configuration.
We can install oh my zsh trough curl
or wget
.
# curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# wget
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
I recommend some plugin to improve your develop efficiency.
# complete
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# highlight
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# autojump
git clone git://github.com/wting/autojump.git && cd autojump && ./install.py
You should config plugins
in ~/.zshrc
and run source ~/.zshrc
to make sure the plugins to take effect.
Theme
# powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Then, we config ~/.zshrc
, set ZSH_THEME
to powerlevel10k/powerlevel10k
and source ~/.zshrc
.
# ultimate vimrc Awesome version
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
# Vundle is short for Vim bundle and is a Vim plugin manager.
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
# undo && redo(ctrl+r)
# echo "set undofile" >> ~/.vimrc
# echo "set undodir=~/.vim/undodir" >> ~/.vimrc
mkdir ~/.vim/undodir
TBD