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:
parent
9c38cd7801
commit
2325604f1c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue