Optimized zshrc

This commit is contained in:
Austen Adler 2016-07-18 16:55:56 -04:00
parent 748e80b1fd
commit b04b8675b2
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1
2 changed files with 15 additions and 15 deletions

View File

@ -1,4 +1,4 @@
ABSPATH=$(cd "$(dirname "$0")/.."; pwd)
ABSPATH=$(\cd "$(dirname "$0")/.."; pwd)
echo $ABSPATH
while getopts ":hbsdpcw" VALUE "$@"; do
if [ "$VALUE" = "h" ] ; then
@ -68,20 +68,20 @@ while getopts ":hbsdpcw" VALUE "$@"; do
if command -v git 2>&1 >/dev/null; then
if command -v zsh 2>&1 >/dev/null; then
ln -s $ABSPATH/shells/zshrc ~/.zshrc
if [ ! -d ~/.antigen ] ; then
git clone https://github.com/zsh-users/antigen ~/.antigen
fi
# Install antigen bundles
zsh -c "source ~/.zshrc;exit"
for i in lpr oh-my-git-themes omg zsh-syntax-highlighting; do
if [ ! -d ~/.zsh-git/$i ]; then
git clone https://austenwares.com/gogs/stonewareslord/$i.git ~/.zsh-git/$i
else
\cd ~/.zsh-git/$i
git pull
\cd -
fi
done
fi
if [ ! -d ~/.fzf ] ; then
git clone https://austenwares.com/gogs/stonewareslord/fzf.git ~/.fzf
else
\cd ~/.fzf
git pull origin master
\cd -
~/.fzf/install -y
fi
~/.fzf/install -y
else
echo "No git! Not installing fzf or antigen"
fi

View File

@ -479,8 +479,8 @@ k(){
#alias aoeu='setxkbmap -layout us -option "'
#alias asdf='setxkbmap -layout dvorak -option ""'
#alias sudo='sudo -H'
source ~/zsh/lpr/liquidprompt
source ~/zsh/omg/base.sh
source ~/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/zsh/oh-my-git-themes/af-magic.zsh-theme
source ~/.zsh-git/lpr/liquidprompt
source ~/.zsh-git/omg/base.sh
source ~/.zsh-git/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh-git/oh-my-git-themes/af-magic.zsh-theme
#zprof