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

View File

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