Skip to content

Instantly share code, notes, and snippets.

@arvind-iyer
Created September 28, 2016 14:35
Show Gist options
  • Save arvind-iyer/a71e7a07dd99ffccae368a5f99b640d9 to your computer and use it in GitHub Desktop.
Save arvind-iyer/a71e7a07dd99ffccae368a5f99b640d9 to your computer and use it in GitHub Desktop.
Install prezto on ubuntu
#!/bin/bash
prezto.sh(){
clear
sudo apt-get install -y git
sudo apt-get update && sudo apt-get install -y zsh
# Get prezto
git clone --recursive https://github.com/sorin-ionescu/prezto.git ~/.zprezto
# Backup zsh config if it exists
if [ -f ~/.zshrc ];
then
mv ~/.zshrc ~/.zshrc.backup
fi
# Create links to zsh config files
ln -s ~/.zprezto/runcoms/zlogin ~/.zlogin
ln -s ~/.zprezto/runcoms/zlogout ~/.zlogout
ln -s ~/.zprezto/runcoms/zpreztorc ~/.zpreztorc
ln -s ~/.zprezto/runcoms/zprofile ~/.zprofile
ln -s ~/.zprezto/runcoms/zshenv ~/.zshenv
ln -s ~/.zprezto/runcoms/zshrc ~/.zshrc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment