X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=blobdiff_plain;f=zsh%2F.zshrc;fp=zsh%2F.zshrc;h=36c6de1cc934af8025e36cb7edc5ef3031b4ba09;hp=7284b49f84cc30c388e3ec77b6f8ca3b05ae3e72;hb=409ee7a9f7ee8c500e2cd5b55a36aa62a7182ba6;hpb=3eb192bc43985a0d2cf1095a53ea622e6f1f173a diff --git a/zsh/.zshrc b/zsh/.zshrc index 7284b49..36c6de1 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -90,7 +90,8 @@ f() { alias ssh="TERM=xterm ssh" alias sshnm="ssh -S none" ssht() { - ssh -C -t $1 tmux attach -t0 + local t="-t 0" + TERM=xterm ssh -C -t $1 "tmux has-session $t && tmux attach-session $t || tmux new-session $t" } autoload -U zsh-mime-setup ; zsh-mime-setup