From ed0d67afb24a5bd3732a8969e9c1fcab84223cb7 Mon Sep 17 00:00:00 2001 From: steveokard Date: Mon, 25 Feb 2019 22:51:33 -0500 Subject: [PATCH] Revert "incorporated prezto script into main init" This reverts commit 80e49da031551367ad1e69d24a76005d1bdc4fc6. --- init.sh | 15 +-------------- prezto.zsh | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 14 deletions(-) create mode 100755 prezto.zsh diff --git a/init.sh b/init.sh index b17fe0f..43ecb65 100755 --- a/init.sh +++ b/init.sh @@ -15,20 +15,7 @@ ln -s /home/`whoami`/stevset/mc ~/.config/mc #setup prezto echo "Initializing 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 -if [ -f ~/.zsh_history ] - cat ~/.zsh_history > ~/.zhistory -fi +zsh prezto.zsh #set new shell echo "set new shell to zsh" diff --git a/prezto.zsh b/prezto.zsh new file mode 100755 index 0000000..4990216 --- /dev/null +++ b/prezto.zsh @@ -0,0 +1,14 @@ +#!/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