Skip to content

Instantly share code, notes, and snippets.

@kentliau
Forked from arvind-iyer/prezto.sh
Last active December 5, 2023 05:47
Show Gist options
  • Save kentliau/4df19c59b243b9b389a69c9749c574fc to your computer and use it in GitHub Desktop.
Save kentliau/4df19c59b243b9b389a69c9749c574fc 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
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