Update
This commit is contained in:
parent
0a042964ee
commit
960507afa2
@ -18,9 +18,26 @@ path=(~/bin ~/.local/bin $path[@])
|
||||
|
||||
# >>> active gnome-keyring >>>
|
||||
if [ -n "${DESKTOP_SESSION}" ];then
|
||||
# eval $(gnome-keyring-daemon --start)
|
||||
eval $(gnome-keyring-daemon --replace)
|
||||
export SSH_AUTH_SOCK
|
||||
fi
|
||||
|
||||
# Check if the ssh-agent is already running
|
||||
# if [ "$(ps -u $USER | grep ssh-agent | wc -l)" -lt "1" ]; then
|
||||
# echo "$(date +%F@%T) - SSH-AGENT: Agent will be started"
|
||||
# # Start the ssh-agent and redirect the environment variables into a file
|
||||
# ssh-agent -s >~/.ssh/ssh-agent
|
||||
# # Load the environment variables from the file
|
||||
# . ~/.ssh/ssh-agent >/dev/null
|
||||
# # Add the default key to the ssh-agent
|
||||
# for f in ${HOME}/.ssh/*.pub; do
|
||||
# ssh-add ${HOME}/.ssh/$(basename -s .pub $f)
|
||||
# done
|
||||
# else
|
||||
# echo "$(date +%F@%T) - SSH-AGENT: Agent already running"
|
||||
# . ~/.ssh/ssh-agent >/dev/null
|
||||
# fi
|
||||
|
||||
# <<< active gnome-keyring <<<
|
||||
|
||||
# >>> environment variables >>>
|
||||
|
Loading…
Reference in New Issue
Block a user