Last active
February 21, 2017 04:01
-
-
Save jae-jae/ceb998341007af03d63540b992797d6b to your computer and use it in GitHub Desktop.
安装ZSH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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