incorporated prezto script into main init

This commit is contained in:
Stefen Auris 2019-02-25 10:52:25 -05:00
parent e197704229
commit 80e49da031
2 changed files with 14 additions and 15 deletions

15
init.sh
View file

@ -15,7 +15,20 @@ ln -s /home/`whoami`/stevset/mc ~/.config/mc
#setup prezto #setup prezto
echo "Initializing Prezto" echo "Initializing Prezto"
zsh prezto.zsh
#Remove old stuff
rm -rf ~/.zshrc ~/.zsh ~/.zprofile
#Make Environment Links, per github readme
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/stevset/prezto/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
#Fix History if it exists
if [ -f ~/.zsh_history ]
cat ~/.zsh_history > ~/.zhistory
fi
#set new shell #set new shell
echo "set new shell to zsh" echo "set new shell to zsh"

View file

@ -1,14 +0,0 @@
#!/bin/zsh
#Initializes Prezto
#Remove old stuff
rm -rf ~/.zshrc ~/.zsh ~/.zprofile
#Make Environment Links, per github readme
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/stevset/prezto/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
#Fix History if it exists
cat ~/.zsh_history > ~/.zhistory