Skip to content

Instantly share code, notes, and snippets.

@n1kk
Last active April 13, 2018 14:43
Show Gist options
  • Save n1kk/4c64ede81883b44a1cac0180e1a68adf to your computer and use it in GitHub Desktop.
Save n1kk/4c64ede81883b44a1cac0180e1a68adf to your computer and use it in GitHub Desktop.
Copypaste [kinda]oneliner to install oh-my-zsh into ubuntu server (vm/docker) with a simple theme (cl - af-magic, ssh - bira)
sudo apt-get update && \
sudo apt-get install -y git git-core curl zsh nano && \
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && \
sed -i -E 's/ZSH_THEME=".+"/\[\[ \-n \$SSH_CONNECTION \]\] \&\& ZSH_THEME\="bira" \|\| ZSH_THEME\="af\-magic"/g' $HOME/.zshrc && \
env zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment