Guide to Installing Zsh on Glitch Console

I was able to install Zsh to the Glitch console without access to sudo.

Here’s how:

enable-pnpm
wget http://www.zsh.org/pub/zsh-5.5.1.tar.gz
tar -xzf zsh-*.tar.gz
rm zsh-*.tar.gz
cd zsh-*
mkdir ~/local
./configure --prefix=$HOME/local
make
make check
make install
cd ~
rm -rf ~/zsh-*
export PATH=$HOME/local/bin:$PATH
zsh --LOGIN

Or, as a ingle line with all commands joined by ;

enable-pnpm; wget http://www.zsh.org/pub/zsh-5.5.1.tar.gz; tar -xzf zsh-*.tar.gz; rm zsh-*.tar.gz; cd zsh-*; mkdir ~/local; ./configure --prefix=$HOME/local; make; make check; make install; cd ~; rm -rf ~/zsh-*; export PATH=$HOME/local/bin:$PATH; zsh --LOGIN

In the future, you may need to update the wget command to point to the link for the most recent Zsh version which can be found at http://www.zsh.org/pub/

These steps are mostly the same as those from this helpful blog post:

https://franklingu.github.io/programming/2016/05/24/setup-oh-my-zsh-on-ubuntu-without-sudo/

Now you can hack on some Zsh scripts in the Glitch console. :sunglasses:

2 Likes

Here is Zsh pre-installed in a “sandbox” set up to launch Zsh automatically when the console boots up:

https://glitch.com/edit/#!/remix/zplugin-sandbox