Skip to content

Instantly share code, notes, and snippets.

@eswizardry
Forked from arvind-iyer/prezto.sh
Created May 8, 2018 20:30
Show Gist options
  • Save eswizardry/64ad063a8388e1abed2ad9cf57fb8bf4 to your computer and use it in GitHub Desktop.
Save eswizardry/64ad063a8388e1abed2ad9cf57fb8bf4 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