Skip to content

Commit

Permalink
install: Move SSH stuff before git cloning.
Browse files Browse the repository at this point in the history
Having the appropriate keys ready before using them helps! :P
  • Loading branch information
haaspors committed Oct 3, 2015
1 parent c735b12 commit 3ace346
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions install.sh
Expand Up @@ -66,6 +66,12 @@ elif [ "$(uname)" == "Linux" ]; then
source $ROOTDIR/linux/env.sh
fi

# OpenSSH
_create_dir $HOME/.ssh
echo "Setting up .ssh"
_create_symlink $DBDIR/keys/config $HOME/.ssh/config
gpg-zip -d --tar-args "-C $HOME/.ssh" $DBDIR/keys/keys

# zsh
if [[ ! -d "$HOME/.oh-my-zsh" ]]; then
_git_get_repo git://github.com/robbyrussell/oh-my-zsh.git $HOME/.oh-my-zsh
Expand All @@ -89,12 +95,6 @@ pushd $HOME/.vim/bundle/YouCompleteMe
./install.sh --clang-completer
popd

# OpenSSH
_create_dir $HOME/.ssh
echo "Setting up .ssh"
_create_symlink $DBDIR/keys/config $HOME/.ssh/config
gpg-zip -d --tar-args "-C $HOME/.ssh" $DBDIR/keys/keys

echo "Configuring zsh as default shell"
chsh -s $(which zsh)

Expand Down

0 comments on commit 3ace346

Please sign in to comment.