ssh alias
This commit is contained in:
parent
e978486393
commit
f8298cfc30
@ -133,6 +133,7 @@ elif [[ "$OSTYPE" == "darwin" ]]; then
|
||||
alias paste='pbpaste'
|
||||
fi
|
||||
|
||||
alias ssh='TERM=xterm ssh'
|
||||
alias sshn='ssh -S none'
|
||||
|
||||
alias black='magick canvas:none PNG:- | feh -YF -'
|
||||
|
||||
@ -21,7 +21,7 @@ readonly SESSION="ssh_${SSH_SERVER_SESSION_NAME}"
|
||||
|
||||
|
||||
if ! tmux has-session -t "${SESSION}" 2>/dev/null; then
|
||||
tmux new-session -s "${SESSION}" -d -n "1" "ssh ${SSH_SERVER} || read"
|
||||
tmux new-session -s "${SESSION}" -d -n "1" "TERM=xterm ssh '${SSH_SERVER}' || read"
|
||||
fi
|
||||
|
||||
tmux set-option -t "${SESSION}" status off
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user