various enhancements

This commit is contained in:
Stefen Auris 2019-06-24 14:51:53 -04:00
parent 39520f1c4e
commit 5a0002c95c
3 changed files with 23 additions and 9 deletions

View file

@ -1,8 +1,14 @@
#!/bin/zsh
#Initializes Prezto
echo "initialize submodules and clone prezto"
git clone --recursive https://github.com/steveokard/prezto.git "$HOME/stevset/prezto/.zprezto"
#fix submodules once and for all
cd $HOME/stevset/prezto/.zprezto && git submodule update --remote
#Remove old stuff
rm -rf ~/.zshrc ~/.zsh ~/.zprofile
#zlogin zlogout zpreztorc zprofile zshenv zshrc
echo "....Creating symlinks"
rm -rf ~/.zshrc ~/.zsh ~/.zprofile ~/.zlogin ~/.zlogout ~/.zpreztorc ~/.zshenv
#Make Environment Links, per github readme
setopt EXTENDED_GLOB
@ -11,8 +17,12 @@ for rcfile in "${ZDOTDIR:-$HOME}"/stevset/prezto/.zprezto/runcoms/^README.md(.N)
done
#Fix History if it exists
cat ~/.zsh_history > ~/.zhistory
if test -f "~/.zsh_history"; then
cat ~/.zsh_history > ~/.zhistory
fi
#extra setup for powerlevel10k theme
echo "....configuring theme"
cd && curl -fsSLO https://raw.githubusercontent.com/romkatv/dotfiles-public/master/.purepower
ln -s ~/.zprezto/modules/prompt/{external/powerlevel10k/powerlevel10k.zsh-theme,functions/prompt_powerlevel10k_setup}
ln -s $HOME/.zprezto/modules/prompt/external/powerlevel10k/prompt_powerlevel10k_setup $HOME/.zprezto/modules/prompt/functions/prompt_powerlevel10k_setup