add antigen concerns to installer
This commit is contained in:
parent
5e4ea55a74
commit
2b7a2487aa
1 changed files with 16 additions and 2 deletions
18
install.sh
18
install.sh
|
|
@ -41,7 +41,7 @@ install_everything() {
|
|||
symlink_files bash-files bashrc bash_profile
|
||||
|
||||
echo "setting up zsh files..."
|
||||
symlink_files zsh-files zshrc oh-my-zsh
|
||||
setup_zsh
|
||||
|
||||
echo "setting up powerline..."
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ symlink_files() {
|
|||
echo "moving old .$filename to .${filename}.bak"
|
||||
mv $HOME/.$filename $HOME/.${filename}.bak
|
||||
fi
|
||||
echo "linking $DIR/$source_dir/$filename $HOME/.$filename"
|
||||
echo "linking $DIR/$source_dir/$filename -> $HOME/.$filename"
|
||||
ln -s "$DIR/$source_dir/$filename" "$HOME/.$filename"
|
||||
done
|
||||
}
|
||||
|
|
@ -89,6 +89,20 @@ setup_youcompleteme() {
|
|||
fi
|
||||
}
|
||||
|
||||
setup_zsh() {
|
||||
symlink_files zsh-files zshrc
|
||||
symlink_antigen
|
||||
}
|
||||
|
||||
symlink_antigen() {
|
||||
if [ -e $HOME/antigen.zsh ]; then
|
||||
echo "moving old antigen file to antigen.zsh.bak"
|
||||
mv $HOME/antigen.zsh $HOME/antigen.zsh.bak
|
||||
fi
|
||||
echo "linking $DIR/zsh-files/antigen/antigen.zsh -> $HOME/antigen.zsh"
|
||||
ln -s "$DIR/zsh-files/antigen/antigen.zsh" "$HOME/antigen.zsh"
|
||||
}
|
||||
|
||||
create_local_bin() {
|
||||
(cd ~/local) || mkdir ~/local
|
||||
(cd ~/local/bin) || mkdir ~/local/bin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue