From 363a73458fcc3a6a55b7dd1f09703e8017d7a302 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 27 Oct 2020 11:09:34 -0400 Subject: Use SendEnv for cd host:path Works properly for weird paths, etc. --- home/.shrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'home') diff --git a/home/.shrc b/home/.shrc index df1c8b26..2c3b4740 100644 --- a/home/.shrc +++ b/home/.shrc @@ -21,7 +21,7 @@ cd() { if [ $# -eq 0 ]; then builtin cd elif [ "${1%%:*}" != "$1" ]; then - ssh -o "SetEnv SSH_CD=${1#*:}" "${1%%:*}" + SSH_CD=${1#*:} ssh -o SendEnv=SSH_CD "${1%%:*}" elif [ -e "$1" -a ! -d "$1" ]; then builtin cd "${1%/*}" && $EDITOR "${1##*/}" else -- cgit 1.4.1