Configuration forwardinf agent SSH pour tmux
This commit is contained in:
parent
b5963c472e
commit
268562da25
6
_bashrc
6
_bashrc
@ -121,3 +121,9 @@ if [ -e /usr/local/share/git-core/contrib/completion/git-prompt.sh ] || [ -e /us
|
|||||||
export GIT_PS1_SHOWCOLORHINTS=1
|
export GIT_PS1_SHOWCOLORHINTS=1
|
||||||
export PROMPT_COMMAND='__git_ps1 "\[\033[1;31m\]>> \[\033[01;37m\](\[\033[0;37m\]\u@\[\033[0;32m\]\h\[\033[01;37m\]) \[\033[01;34m\]\w\[\033[00m\]" "\n\[\033[1;31m\]>>\[\033[0;37m\] "'
|
export PROMPT_COMMAND='__git_ps1 "\[\033[1;31m\]>> \[\033[01;37m\](\[\033[0;37m\]\u@\[\033[0;32m\]\h\[\033[01;37m\]) \[\033[01;34m\]\w\[\033[00m\]" "\n\[\033[1;31m\]>>\[\033[0;37m\] "'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Tmux + ssh agent forwarding
|
||||||
|
if [ -S "$SSH_AUTH_SOCK" ] && [ ! -h "$SSH_AUTH_SOCK" ]; then
|
||||||
|
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
|
||||||
|
fi
|
||||||
|
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
|
||||||
|
Loading…
Reference in New Issue
Block a user