function ssht to connect ssh without tmux
This commit is contained in:
parent
abc9276d8e
commit
4695e435c1
@ -131,7 +131,7 @@ vpn() {
|
||||
}
|
||||
|
||||
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
|
||||
echo "Proxy ssh server hostname not specified" 1>&2
|
||||
@ -217,3 +217,8 @@ most-often-commands() {
|
||||
= () {
|
||||
echo "$*" | bc -l
|
||||
}
|
||||
|
||||
# Disable tmux on remote machine
|
||||
ssht() {
|
||||
ssh -t "$1" 'TMUX=NO $SHELL -l'
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user