incorporated prezto script into main init
This commit is contained in:
parent
e197704229
commit
80e49da031
2 changed files with 14 additions and 15 deletions
15
init.sh
15
init.sh
|
@ -15,7 +15,20 @@ ln -s /home/`whoami`/stevset/mc ~/.config/mc
|
|||
|
||||
#setup 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
|
||||
echo "set new shell to zsh"
|
||||
|
|
14
prezto.zsh
14
prezto.zsh
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue