oh-my-zsh
代码语言:javascript
复制sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
修改SHELL为zsh
代码语言:javascript
复制sudo usermod -s /bin/zsh $(whoami)
安装fzf
代码语言:javascript
复制git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
git alias设置
代码语言:javascript
复制git config --global alias.st status
git config --global alias.a add
git config --global alias.p push
git config --global alias.pu pull
git config --global alias.ci commit
git config --global alias.br branch
git config --global alias.unstage 'reset HEAD'
git config --global alias.last 'log -1'
git config --global alias.co checkout
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"