Merge branch 'master' of github:/SonnyBA/dotfiles
This commit is contained in:
commit
1e862d8c1e
2 changed files with 17 additions and 3 deletions
|
|
@ -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/
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue