Created
September 28, 2016 14:35
-
-
Save arvind-iyer/a71e7a07dd99ffccae368a5f99b640d9 to your computer and use it in GitHub Desktop.
Install prezto on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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