Last active
August 29, 2015 14:06
-
-
Save jmatsu/8406549c0aae0fc21d2e to your computer and use it in GitHub Desktop.
Install latest zsh ( 2014/9/18現在 )
This file contains hidden or 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 | |
yum -y install zsh gcc | |
_VERSION="5.0.6" | |
_CUR_VERSION=`zsh --version | grep ${_VERSION} | wc -l` | |
_MIRROR_NAME='jaist' | |
if [ ${_CUR_VERSION} -eq 1 ]; then | |
exit 0 | |
fi | |
yum install ncurses-devel | |
mkdir .src | |
cd .src | |
\curl -O -L "http://downloads.sourceforge.net/project/zsh/zsh/${_VERSION}/zsh-${_VERSION}.tar.bz2?use_mirror=${_MIRROR_NAME}" | |
tar jxf "zsh-${_VERSION}".tar.bz2* | |
cd "zsh-$_VERSION" | |
./configure --prefix=/ --enable-multibyte | |
make && make test && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment