This documentation contains step-by-step guide on how to install zsh in Docker, with special omz and nvim configs from Ming Rui.
- Start running with Docker:
docker run --rm -it -gpus all -v $HOME:/root/$USER [dockerimagename]-v $HOME:/root/$USERwill mount your home directory on the server. If you do not wish the Docker to access your files on the server, remove this part.- You can try to run the Ubuntu 16.04 image (ubuntu:16.04) on the server, or any other image suitable on Docker hub.
- More info on docker flags and commands can be found in Docker documentation
- Once inside Docker, run the following commands to install neccessary packages:
apt update
apt upgrade
apt install git zip wget curl zsh htop tree tmux screen g++ make cmake neovim
apt autoclean -y
apt autoremove -y- Installing Ming Rui's configs:
pip install --no-cache-dir neovim jedi
git clone https://github.com/mingruimingrui/my-vim-config.git
cd my-vim-config
./setup-zsh-env.sh
./setup-vim-env.sh
cd /root
rm -rf my-vim-config- Start the Z shell with
zsh. Usually, there will be a prompt to change your default shell into zsh (enter 'yes' if you want zsh to be your default shell). Otherwise, you can change from bash to zsh withchsh -s /bin/zsh. - Congrats, you're now inside zsh with omz configs!
- You can 'save' your new image and use it as a base for next time! Simply run
docker psto check your container ID. Then rundocker commit [containerid] [imagename]to 'save' your new image. - If you want to make sure, run
docker images. Your new image should appear there.
Have fun!