function ssht to connect ssh without tmux

This commit is contained in:
thek4n 2024-01-24 14:33:25 +03:00
parent abc9276d8e
commit 4695e435c1

View File

@ -131,7 +131,7 @@ vpn() {
} }
toggle-ssh-proxy() { toggle-ssh-proxy() {
SSH_PROXY_CONTROL_FILE="$XDG_RUNTIME_DIR/ssh_$1_proxy.control" SSH_PROXY_CONTROL_FILE="$XDG_RUNTIME_DIR/ssh_$1_proxy.control"
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Proxy ssh server hostname not specified" 1>&2 echo "Proxy ssh server hostname not specified" 1>&2
@ -217,3 +217,8 @@ most-often-commands() {
= () { = () {
echo "$*" | bc -l echo "$*" | bc -l
} }
# Disable tmux on remote machine
ssht() {
ssh -t "$1" 'TMUX=NO $SHELL -l'
}