summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-10-27 11:09:34 -0400
committerJune McEnroe <june@causal.agency>2020-10-27 11:09:34 -0400
commit363a73458fcc3a6a55b7dd1f09703e8017d7a302 (patch)
tree2689f018bd7ecad603c30034fdf0a5cefceb9aa5
parentAllow cd host:path over ssh (diff)
downloadsrc-363a73458fcc3a6a55b7dd1f09703e8017d7a302.tar.gz
src-363a73458fcc3a6a55b7dd1f09703e8017d7a302.zip
Use SendEnv for cd host:path
Works properly for weird paths, etc.
-rw-r--r--home/.shrc2
1 files changed, 1 insertions, 1 deletions
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
0d33e19434a453f583bf716b1d4ac0&follow=1'>Call def_prog_mode after termNoFlowJune McEnroe 2019-02-22Move IRC formatting reset to C-sJune McEnroe 2019-02-22Disable terminal flow controlJune McEnroe 2019-02-22Bind up and down arrows to scrollJune McEnroe 2019-02-22Remove topic TODOJune McEnroe 2019-02-22Add /znc commandJune McEnroe 2019-02-22Update status line after scrolling and term eventsJune McEnroe 2019-02-22Reorganize input.cJune McEnroe 2019-02-22Fix name of <raw> window in man pageJune McEnroe 2019-02-22Rename global tags with angle bracketsJune McEnroe 2019-02-22Show status window while connectingJune McEnroe 2019-02-22Reorganize UI code for the umpteenth timeJune McEnroe 2019-02-21Replace "view" with "window"June McEnroe 2019-02-21Remove ROT13June McEnroe 2019-02-21Clean up man pageJune McEnroe 2019-01-26Draw UI before connectingJune McEnroe 2019-01-25Avoid unused variable warnings with getyxJune McEnroe 2019-01-25Add GNU/Linux build instructionsJune McEnroe