1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Don't start SSH agent if it's already running

This commit is contained in:
Joe Groocock 2016-07-20 16:25:24 +01:00
parent 7348528fb5
commit 975aff3989

View File

@ -14,4 +14,7 @@ export BROWSER="google-chrome-stable"
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
export QT_STYLE_OVERRIDE=GTK+ export QT_STYLE_OVERRIDE=GTK+
eval `ssh-agent` && ssh-add if [ -z $SSH_AGENT_PID ]; then
eval `ssh-agent`
ssh-add
fi