forked from sorin-ionescu/prezto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·44 lines (30 loc) · 881 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
if [ -e ~/.zprezto ]
then
mv -f ~/.zprezto ~/.zprezto-before-chavao-prezto
fi
if [ -e ~/.zshrc ]
then
mv -f ~/.zshrc ~/.zshrc-before-chavao-prezto
fi
git clone https://github.com/Chavao/prezto ~/.zprezto
cd ~/.zprezto
git submodule update --init --recursive
cd $HOME
ln -sf ~/.zprezto/runcoms/zlogin .zlogin
ln -sf ~/.zprezto/runcoms/zlogout .zlogout
ln -sf ~/.zprezto/runcoms/zpreztorc .zpreztorc
ln -sf ~/.zprezto/runcoms/zprofile .zprofile
ln -sf ~/.zprezto/runcoms/zshenv .zshenv
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
touch ~/.zshrc
cat >> ~/.zshrc << EOF
# Load zshrc
source $HOME/.zprezto/runcoms/zshrc
# Load zsh-autosuggestions
source $HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# Load dotfiles
source ~/dotfiles/loader.sh
# Load custom aliases
source ~/.aliases
# Customize to your needs...
EOF