summary refs log tree commit diff
path: root/home
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 /home
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.
Diffstat (limited to '')
-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
g again, add formattingJune McEnroe 2018-08-06Fix allocation size in vaswprintfJune McEnroe 2018-08-06Implement word wrappingJune McEnroe 2018-08-06Use wchar_t strings for all of UIJune McEnroe 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe 2018-08-04Handle /topicJune McEnroe