Browse Source

bashrc: use gpg for ssh-agent

master
Skia 6 months ago
parent
commit
723e7b28bd
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      .bashrc

+ 7
- 0
.bashrc View File

@@ -111,6 +111,13 @@ alias ll='ls -la'
alias la='ls -A'
alias l='ls -CF'

# ssh-agent
export SSH_AUTH_SOCK="/run/user/$(id -u)/gnupg/S.gpg-agent.ssh"

if ! [ -S "$SSH_AUTH_SOCK" ]; then
gpg-agent --enable-ssh-support --daemon
fi

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.

Loading…
Cancel
Save