Skip to content

Commit e1ecc5a

Browse files
wadeyWade Simmons
authored and
Wade Simmons
committed
1 parent fa73928 commit e1ecc5a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

screenrc

+4
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ vbell off # no visual bell
1212
# Display status line: All windows, with the active window highlighted. Time and date right aligned.
1313
# hardstatus alwayslastline "%{= kR} %-Lw%{=b Kk} %n%f %t %{-}%+Lw %=%{= kR}%C%A %D, %M/%d/%Y %{= dd}"
1414
hardstatus alwayslastline "%-Lw%{=b bw} %n%f %t %{-}%+Lw %=%C%A %D, %M/%d/%Y %{= dd}"
15+
16+
# http://www.jukie.net/bart/blog/screen-ssh-agent
17+
unsetenv SSH_AUTH_SOCK
18+
setenv SSH_AUTH_SOCK $HOME/.screen/ssh-auth-sock.$HOST

zsh.d/S40_aliases

+7
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,10 @@ alias suvi=sudovim
7171
autoload zmv
7272
# Easy "mass move" alias
7373
alias mmv='noglob zmv -W'
74+
75+
# http://www.jukie.net/bart/blog/screen-ssh-agent
76+
_ssh_auth_save() {
77+
mkdir -p "$HOME/.screen"
78+
ln -sf "$SSH_AUTH_SOCK" "$HOME/.screen/ssh-auth-sock.$HOST"
79+
}
80+
alias screen='_ssh_auth_save && HOST="$HOST" screen'

0 commit comments

Comments
 (0)