I was able to install Zsh to the Glitch console without access to sudo.
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:
Now you can hack on some Zsh scripts in the Glitch console.