From 361eacfe215343d432812e29bd6369783679b210 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 7 May 2020 22:42:54 +1200 Subject: [PATCH] escape dir in sshcd --- .zsh/zshrc/parts.d/50-ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zsh/zshrc/parts.d/50-ssh b/.zsh/zshrc/parts.d/50-ssh index d872af2..166fa12 100644 --- a/.zsh/zshrc/parts.d/50-ssh +++ b/.zsh/zshrc/parts.d/50-ssh @@ -60,7 +60,7 @@ sshcd() { else - ssh -t $args $host "cd '$dir' && exec \$SHELL --login" + ssh -t $args $host "cd '${dir:gs/\'/\'\\\'\'}' && exec \$SHELL --login" fi } -- 2.39.5