Use XDG_RUNTIME_DIR for ensure ssh agent

main
Buddy Sandidge 5 years ago
parent 7fa6ac9318
commit 4099ec982d

@ -1,6 +1,6 @@
#!/usr/bin/env bash
ENVFILE=~/.bash/ssh-agent.env
ENVFILE="${XDG_RUNTIME_DIR:-$XDG_DATA_HOME}/ssh-agent.env"
if [ -f $ENVFILE ] ; then
. $ENVFILE > /dev/null

@ -9,11 +9,11 @@ function source-file {
}
source-file /etc/bash_completion
source-file ~/.bash/environment
source-file ~/.bash/colors
source-file ~/.bash/aliases
source-file ~/.bash/functions
source-file ~/.bash/path
source-file ~/.bash/environment
source-file ~/.bash/prompt
source-file ~/.bash/ensure-ssh-agent
source-file ~/.bash/completion

Loading…
Cancel
Save