-
-
Save fabioperez/b64085688a8df5208ce617c78377185c to your computer and use it in GitHub Desktop.
Build Zsh from sources on Ubuntu
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/sh | |
# Build Zsh from sources on Ubuntu. | |
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file. | |
# Some packages may be missing | |
sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo | |
git clone git://git.code.sf.net/p/zsh/code zsh | |
cd zsh | |
./Util/preconfig | |
# Options from Ubuntu Zsh package rules file (http://launchpad.net/ubuntu/+source/zsh) | |
./configure --prefix=/usr \ | |
--mandir=/usr/share/man \ | |
--bindir=/bin \ | |
--infodir=/usr/share/info \ | |
--enable-maildir-support \ | |
--enable-max-jobtable-size=256 \ | |
--enable-etcdir=/etc/zsh \ | |
--enable-function-subdirs \ | |
--enable-site-fndir=/usr/local/share/zsh/site-functions \ | |
--enable-fndir=/usr/share/zsh/functions \ | |
--with-tcsetpgrp \ | |
--with-term-lib="ncursesw" \ | |
--enable-cap \ | |
--enable-pcre \ | |
--enable-readnullcmd=pager \ | |
--enable-custom-patchlevel=Debian \ | |
LDFLAGS="-Wl,--as-needed -g" | |
make | |
make check | |
sudo make install | |
sudo make install.info | |
# Add zsh to /etc/shells | |
command -v zsh | sudo tee -a /etc/shells | |
# Set zsh as the default shell | |
sudo chsh -s "$(command -v zsh)" "${USER}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment