Last active
October 19, 2016 04:21
-
-
Save pokev25/8628fa476c4c77c2e243 to your computer and use it in GitHub Desktop.
centos zsh compile
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
#complie | |
#prerequisite: gcc ncurses-devel readline-devel pcre-devel zlib-devel | |
wget http://sourceforge.net/projects/zsh/files/zsh/5.0.7/zsh-5.0.7.tar.bz2 | |
tar xvjf zsh-5.0.7.tar.bz2 | |
cd zsh-5.0.7 | |
./configure && make && sudo make install | |
#edit | |
vim /etc/shells | |
#add | |
/usr/local/bin/zsh | |
#change zsh | |
chsh -s /usr/local/bin/zsh | |
#install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# utf file name | |
vim .zshrc | |
#set theme | |
ZSH_THEME="agnoster" | |
#uncomment | |
export LANG=en_US.UTF-8 | |
#set user default shell | |
usermod -s /usr/local/bin/zsh <username> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment