zsh

zsh #

oh-my-zsh #

安装

sudo yum install -y git zsh

# sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
cat << 'EOF' >> ~/.zshrc

export PROMPT='%{$fg[magenta]%}%(?..%?%1v)%n@%{$fg[green]%}%M:%{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'

EOF
zsh

alias cdcode='cd ~/code'
alias cdstudy='cdcode && cd study'
alias cdtest='cdstudy && cd test'
alias cdgithub='cdcode && cd github'
alias cdgitlab='cdcode && cd gitlab'
alias cdbitbucket='cdcode && cd bitbucket'

# proxy
# export http_proxy=149.28.137.166:20171
# export https_proxy=149.28.137.166:20171


# 设置默认为 zsh
sudo chsh -s /usr/bin/zsh yewang

本文访问量

本站总访问量

本站总访客数