Allow ssh-agent forward in screen/tmux
This commit is contained in:
parent
3b5a270a23
commit
b2659b6d84
1 changed files with 4 additions and 1 deletions
5
.zshrc
5
.zshrc
|
|
@ -110,6 +110,9 @@ else
|
||||||
export VISUAL=vi
|
export VISUAL=vi
|
||||||
export EDITOR=vi
|
export EDITOR=vi
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$SSH_AUTH_SOCK" ] ; then
|
||||||
|
ln -fs $SSH_AUTH_SOCK $HOME/.ssh-agent
|
||||||
|
fi
|
||||||
#xset fp+ /usr/APL2/fonts/X11
|
#xset fp+ /usr/APL2/fonts/X11
|
||||||
#xset fp rehash
|
#xset fp rehash
|
||||||
#if [ -d $HOME/.gems/gems ] ; then
|
#if [ -d $HOME/.gems/gems ] ; then
|
||||||
|
|
@ -157,7 +160,7 @@ alias sl="screen -ls"
|
||||||
alias sr="screen -r"
|
alias sr="screen -r"
|
||||||
alias sx="screen -x"
|
alias sx="screen -x"
|
||||||
alias srd="screen -rd"
|
alias srd="screen -rd"
|
||||||
alias t="SSH_AUTH_SOCK=$HOME/.tmux-ssh-agent TERM=xterm-256color tmux at"
|
alias t="SSH_AUTH_SOCK=$HOME/.ssh-agent TERM=xterm-256color tmux at"
|
||||||
alias tl="tmux ls"
|
alias tl="tmux ls"
|
||||||
alias bc="bc -q"
|
alias bc="bc -q"
|
||||||
alias fm="fmstatus.sh&;shell-fm"
|
alias fm="fmstatus.sh&;shell-fm"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue