Use XDG_RUNTIME_DIR for ensure ssh agent
This commit is contained in:
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
|
||||
|
||||
2
bashrc
2
bashrc
@ -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…
Reference in New Issue
Block a user