Merge branch 'master' of github:/SonnyBA/dotfiles

This commit is contained in:
Sonny 2017-07-04 07:34:28 +02:00
commit 1e862d8c1e
2 changed files with 17 additions and 3 deletions

View file

@ -21,8 +21,7 @@ function user_config {
echo 'Creating systemlinks'
ln -s $SCRIPTPATH/vim/.vimrc $HOME/;
ln -s $SCRIPTPATH/tmux/.tmux.conf $HOME/;
mkdir -p $HOME/.vim/colors
cp $SCRIPTPATH/vim/colors/* $HOME/.vim/colors
ln -s $SCRIPTPATH/vim/colors $HOME/.vim/
}

View file

@ -1 +1,16 @@
#!/bin/bash
# Start ssh-agent and add keys in ~/.ssh directory
# Should only be used without a desktop manager
ENV=/tmp/.agent_env
KEYS=$(basename --suffix=.pub -a $HOME/.ssh/*.pub)
if [ -z "$SSH_AGENT_PID" ] && [ ! -e "$ENV" ] ; then
ssh-agent > $ENV
source $ENV
for key in $KEYS;
do
ssh-add ~/.ssh/$key
done
echo 'Agent started'
else
source $ENV
echo 'Agent started already, good to go'
fi