ssh alias

This commit is contained in:
thek4n 2024-11-02 14:23:00 +03:00
parent e978486393
commit f8298cfc30
2 changed files with 2 additions and 1 deletions

View File

@ -133,6 +133,7 @@ elif [[ "$OSTYPE" == "darwin" ]]; then
alias paste='pbpaste' alias paste='pbpaste'
fi fi
alias ssh='TERM=xterm ssh'
alias sshn='ssh -S none' alias sshn='ssh -S none'
alias black='magick canvas:none PNG:- | feh -YF -' alias black='magick canvas:none PNG:- | feh -YF -'

View File

@ -21,7 +21,7 @@ readonly SESSION="ssh_${SSH_SERVER_SESSION_NAME}"
if ! tmux has-session -t "${SESSION}" 2>/dev/null; then 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 fi
tmux set-option -t "${SESSION}" status off tmux set-option -t "${SESSION}" status off