Skip to content

Commit

Permalink
remote changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kerinin committed Apr 11, 2013
1 parent 1c4bea7 commit e23197d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .profile_shared
Expand Up @@ -47,6 +47,12 @@
# bindkey "^U" kill-line
# KEYTIMEOUT=1

# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi


# Prevent trailing space being stripped after tab-completion
function self-insert-no-autoremove {
LBUFFER="$LBUFFER$KEYS"
Expand Down
26 changes: 13 additions & 13 deletions setup.sh
Expand Up @@ -89,16 +89,16 @@ else
fi

echo "---> Cloning zsh repo:"
if ! [ -d ~/.zpretzo ]; then
if git clone git@github.com:kerinin/pretzo.git ~/.zpretzo; then
echo "Cloned zpretzo repo WITH commit access"
if ! [ -d ~/.zprezto ]; then
if git clone git@github.com:kerinin/prezto.git ~/.zprezto; then
echo "Cloned zprezto repo WITH commit access"
else
git clone git://github.com/kerinin/pretzo.git ~/.zpretzo
echo "Clone zpretzo WITHOUT commit access"
git clone git://github.com/kerinin/prezto.git ~/.zprezto
echo "Clone zprezto WITHOUT commit access"
fi
else
echo "zpretzo already cloned, fetching master"
cd .zpretzo
echo "zprezto already cloned, fetching master"
cd .zprezto
git pull
cd ../
fi
Expand All @@ -110,12 +110,12 @@ git submodule update
cd

echo "---> Symlinking environment:"
symlink_or_backup .zlogin .zpretzo/runcoms/zlogin
symlink_or_backup .zlogout .zpretzo/runcoms/zlogout
symlink_or_backup .zpretzorc .zpretzo/runcoms/zeptorc
symlink_or_backup .zprofile .zpretzo/runcoms/zprofile
symlink_or_backup .zshenv .zpretzo/runcoms/zshenv
symlink_or_backup .zshrc .zpretzo/runcoms/zshrc
symlink_or_backup .zlogin .zprezto/runcoms/zlogin
symlink_or_backup .zlogout .zprezto/runcoms/zlogout
symlink_or_backup .zpreztorc .zprezto/runcoms/zeptorc
symlink_or_backup .zprofile .zprezto/runcoms/zprofile
symlink_or_backup .zshenv .zprezto/runcoms/zshenv
symlink_or_backup .zshrc .zprezto/runcoms/zshrc
if command_exists vim; then symlink_or_backup .vim environment/.vim; symlink_or_backup .vimrc environment/.vimrc; fi
if command_exists rbenv; then symlink_or_backup .rbenv environment/.rbenv; fi
if command_exists gem; then symlink_or_backup .gemrc environment/.gemrc; fi
Expand Down

0 comments on commit e23197d

Please sign in to comment.