diff options
author | Amin Bandali <bandali@gnu.org> | 2019-08-10 15:09:02 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-08-10 15:09:02 -0400 |
commit | c0ace3ce0e4fd5c53572c547252365a724110c03 (patch) | |
tree | 87f721ea491e71b44399a466905036b1ace717c2 /.profile | |
parent | 3dfefa5182d995659829548f2fe39eb584b6688e (diff) | |
download | configs-c0ace3ce0e4fd5c53572c547252365a724110c03.tar.gz configs-c0ace3ce0e4fd5c53572c547252365a724110c03.tar.xz configs-c0ace3ce0e4fd5c53572c547252365a724110c03.zip |
shell: it probably makes more sense to start ssh-agent in ~/.profile
Diffstat (limited to '')
-rw-r--r-- | .profile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -52,6 +52,16 @@ if [ -z "$IS_GUIX_SYSTEM" ]; then fi fi +# start an ssh-agent (with guix's openssh) +if [ -z "$IS_GUIX_SYSTEM" ]; then + if ! pgrep -u "$USER" ssh-agent > /dev/null; then + ssh-agent > ~/.ssh-agent-thing + fi + if [[ ! "$SSH_AUTH_SOCK" ]]; then + eval "$(<~/.ssh-agent-thing)" + fi +fi + setxkbmap \ -layout us,ir \ -option ctrl:nocaps \ |