add ssh-agent

This commit is contained in:
Barak Michener 2017-12-15 14:42:06 -08:00
parent 921777c048
commit b1e16b1beb
3 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1 @@
/home/barak/.config/systemd/user/ssh-agent.service

View file

@ -0,0 +1,10 @@
[Unit]
Description=SSH key agent
[Service]
Type=forking
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target

View file

@ -37,3 +37,4 @@ ENV=$HOME/.zshrc; export ENV
#alias ls='ls -FG'
#alias la='ls -FGal'
#source ~/.zshrc
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"