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(-) 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 3c7decca17bc39aa8023fe6f80287aee'>this commit web frontend for git
about summary refs log tree commit diff
path: root/shared.c (unfollow)
Commit message (Expand)Author
2013-05-13t0109: "function" is a bash-ismJohn Keeping
2013-05-13New mailing list.Jason A. Donenfeld
2013-04-30ui-snapshot: do not access $HOMEJason A. Donenfeld
2013-04-27t0001: validate Git -rcN version numbers correctlyJohn Keeping
2013-04-27git: update to 1.8.2.2John Keeping
2013-04-17scan-tree: fix regression in section-from-path=-1John Keeping
2013-04-15t0001: ignore ".dirty" suffix on Git versionJohn Keeping
2013-04-15tests: set TEST_OUTPUT_DIRECTORY to the CGit test directoryJohn Keeping
2013-04-15t0109: test more URLsJohn Keeping
2013-04-10cgitrc.5.txt: Specify when scan-path must be defined before.Jason A. Donenfeld
2013-04-10ui-snapshot.c: Prepend "V" when guessing ref namesLukas Fleischer
2013-04-10t0107: Skip ZIP tests if unzip(1) isn't availableLukas Fleischer
2013-04-10tests/: Do not use `sed -i`Lukas Fleischer
2013-04-10Add branch-sort and repo.branch-sort options.Jason A. Donenfeld
2013-04-10t0109: chain operations with &&John Keeping
2013-04-10cgit.c: Do not restore unset environment variablesLukas Fleischer
2013-04-09t0107: Use `tar -z` for gzip'ed archivesLukas Fleischer