Skip to content

Instantly share code, notes, and snippets.

@jmatsu
Last active August 29, 2015 14:06
Show Gist options
  • Save jmatsu/8406549c0aae0fc21d2e to your computer and use it in GitHub Desktop.
Save jmatsu/8406549c0aae0fc21d2e to your computer and use it in GitHub Desktop.
Install latest zsh ( 2014/9/18現在 )
#!/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