Created
February 15, 2012 05:32
-
-
Save iorionda/1833519 to your computer and use it in GitHub Desktop.
tmux_ssh, man_ssh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# terminalの中でsshしたら新しいwindowを作成する | |
if [ "$TERM" = "screen-256color-bce" ];then | |
function ssh_tmux() { | |
eval server=\${$#} | |
tmux new-window -n $@ "exec ssh $@" | |
} | |
alias ssh=ssh_tmux | |
fi | |
# terminalの中でmanをしたら新しいpainを作成する | |
if [ "$TERM" = "screen-256color-bce" ];then | |
function man_tmux() { | |
eval server=\${$#} | |
tmux split-window "exec man $@" | |
} | |
alias man=man_tmux | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment