]> git.friedersdorff.com Git - max/dotfiles.git/blobdiff - bash/.bashrc
Correctly set SSH_AGENT_SOCKET
[max/dotfiles.git] / bash / .bashrc
index 6349cc8a2f1a5ca163681db2e9746bb4534608d9..d9e59b2c92964b995e9d22e2d1b041d7b41a2d9f 100644 (file)
@@ -117,7 +117,7 @@ function __prompt_command()
   PS1+="${debian_chroot:+($debian_chroot)}"
 
   # basic information (user@host:path)
-  PS1+="\[$RED$BOLD\]\u\[$RESET\]@\[$RED$BOLD\]\h\[$RESET\]:\[$BLUE\]\w\[$RESET\] "
+  PS1+="\[$RED$BOLD\]\u\[$RESET\]@\[$RED$BOLD\]\h\[$RESET\]:\[$BLUE\]\w\[$RESET\]\n"
 
   
   # prompt $ or # for root
@@ -131,7 +131,7 @@ fi
 
 unset SSH_AGENT_PID
 if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
-    export SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh
+  export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
 fi
 
 export GPG_TTY=($tty)