diff --git a/.bash_profile-cosmic b/.bash_profile-cosmic new file mode 100644 index 0000000..90b33f8 --- /dev/null +++ b/.bash_profile-cosmic @@ -0,0 +1,5 @@ +# The alpha release of cosmic doesn't support xdg autostart so this is a hack to handle my ssh-agent +if [ "${XDG_CURRENT_DESKTOP}" == "COSMIC" ]; then + ps -ef | grep "ssh-agent" |grep -v grep > /dev/null || ssh-agent -a /run/user/1000/ssh-agent.socket + export SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket +fi