ssh: use same agent path everywhere so tmux stays sane
This commit is contained in:
parent
2c730982ed
commit
7821afe73f
2 changed files with 2 additions and 2 deletions
2
.ssh/rc
2
.ssh/rc
|
@ -1,3 +1,3 @@
|
||||||
if [[ -S "$SSH_AUTH_SOCK" && ! -h "$SSH_AUTH_SOCK" ]]; then
|
if [[ -S "$SSH_AUTH_SOCK" && ! -h "$SSH_AUTH_SOCK" ]]; then
|
||||||
ln -sf "$SSH_AUTH_SOCK" "${XDG_RUNTIME_DIR}/ssh-agent.socket";
|
ln -sf "$SSH_AUTH_SOCK" "${XDG_RUNTIME_DIR}/gcr/ssh";
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -17,7 +17,7 @@ set-option -g mouse on
|
||||||
set -g set-clipboard on
|
set -g set-clipboard on
|
||||||
bind-key ] paste-buffer -p
|
bind-key ] paste-buffer -p
|
||||||
|
|
||||||
set-environment -g "SSH_AUTH_SOCK" "$XDG_RUNTIME_DIR/ssh-agent.socket"
|
set-environment -g "SSH_AUTH_SOCK" "$XDG_RUNTIME_DIR/gcr/ssh"
|
||||||
set -g update-environment "BUILDCOMMAND GOPACKAGESDRIVER SSH_AUTH_SOCK SSH_CONNECTION"
|
set -g update-environment "BUILDCOMMAND GOPACKAGESDRIVER SSH_AUTH_SOCK SSH_CONNECTION"
|
||||||
set -g default-command zsh
|
set -g default-command zsh
|
||||||
set -g history-limit 10000
|
set -g history-limit 10000
|
||||||
|
|
Loading…
Reference in a new issue