-
-
Save kentliau/4df19c59b243b9b389a69c9749c574fc 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 | |
sudo apt install zsh | |
zsh # use zsh | |
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto" | |
setopt EXTENDED_GLOB | |
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do | |
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}" | |
done | |
# 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