Use XDG_RUNTIME_DIR for ensure ssh agent

This commit is contained in:
Buddy Sandidge 2020-01-19 16:20:21 -08:00
parent 7fa6ac9318
commit 4099ec982d
2 changed files with 2 additions and 2 deletions

View File

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

2
bashrc
View File

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