SSH: ssh-agent fix.
parent
ab84bb6440
commit
bdb2c53192
|
@ -98,12 +98,16 @@ export EDITOR
|
|||
#esac
|
||||
|
||||
## SSH-Agent
|
||||
SSH_DEST_FOLDER="/tmp/ssh-agent_env"
|
||||
if [ $(ps ax -o command="" | grep -c "ssh-agent") -eq 1 ]; then
|
||||
SSH_AGENT_VARS=$(ssh-agent)
|
||||
eval $(echo ${SSH_AGENT_VARS})
|
||||
echo ${SSH_AGENT_VARS} | sed '2q' > "$HOME/.ssh/agent_env"
|
||||
echo ${SSH_AGENT_VARS} | sed '2q' > "$SSH_DEST_FOLDER"
|
||||
chmod 444 "$SSH_DEST_FOLDER"
|
||||
unset $SSH_DEST_FOLDER
|
||||
unset $SSH_AGENT_VARS
|
||||
else
|
||||
eval $(cat "$HOME/.ssh/agent_env")
|
||||
eval $(cat "$SSH_DEST_FOLDER")
|
||||
unset $SSH_DEST_FOLDER
|
||||
fi
|
||||
|
||||
|
|
4
README
4
README
|
@ -1,7 +1,7 @@
|
|||
################################################################################
|
||||
# Unix Home Configuration #
|
||||
# Author: Ambrevar #
|
||||
# Date: 2012-12-05 #
|
||||
# Date: 2013-01-09 #
|
||||
################################################################################
|
||||
|
||||
Synopsis
|
||||
|
@ -59,6 +59,8 @@ Emacs
|
|||
*****
|
||||
Extra deps: emacs-lua-mode, emacs-mediawiki, emacs-yasnippet.
|
||||
|
||||
Emacs daemon is integrated flawlessly thanks to a small script. See .homeinit.
|
||||
|
||||
Configuration for C programming. Bindings to compile either from makefile or
|
||||
from a custom command if no makefile is found.
|
||||
|
||||
|
|
Loading…
Reference in New Issue