]> git.friedersdorff.com Git - max/dotfiles.git/blobdiff - bash/.bashrc
Correctly set SSH_AGENT_SOCKET
[max/dotfiles.git] / bash / .bashrc
index 2ba7279b7294f8d1b9ed2f8ee7c4816810ace780..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=${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh
+  export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
 fi
 
 export GPG_TTY=($tty)