Skip to content

Instantly share code, notes, and snippets.

@jae-jae
Last active February 21, 2017 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jae-jae/ceb998341007af03d63540b992797d6b to your computer and use it in GitHub Desktop.
Save jae-jae/ceb998341007af03d63540b992797d6b to your computer and use it in GitHub Desktop.
安装ZSH
git clone git://github.com/joelthelion/autojump.git
cd autojump
./install.py
最后把以下代码加入.zshrc:
[[-s ~/.autojump/etc/profile.d/autojump.sh ]]&&.~/.autojump/etc/profile.d/autojump.sh
#!/bin/bash
apt-get install zsh -y
chsh -s /bin/zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
# 安装并配置autojump
apt-get install autojump -y
echo '. /usr/share/autojump/autojump.sh'>>~/.zshrc
# 设置默认shell
chsh -s /bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment