Move ssh-agent to /run/user and add 'nix' to $PATH

Move my ssh-agent.sock to /run/user/<ID>/

Added ~/.nix-profile/bin to ${PATH}
This commit is contained in:
c47 2024-02-19 06:50:52 +01:00
parent 9c38cd7801
commit 2325604f1c

View file

@ -21,3 +21,11 @@ bindkey '\e.' insert-last-word
if [[ -f ${ZDOTDIR}/.zaliases ]]; then
source ${ZDOTDIR}/.zaliases
fi
export PATH=${HOME}/.local/bin:${HOME}/.nix-profile/bin:${PATH}
export SSH_AUTH_SOCK=/var/run/user/$(echo $UID)/ssh-agent.sock
if [[ ! $(pidof ssh-agent) ]]; then
eval $(ssh-agent -a ${SSH_AUTH_SOCK})
fi