X-Git-Url: https://git.madduck.net/etc/ssh.git/blobdiff_plain/28e3d69d17ced85acbd61b97e6003f15030f9576..361eacfe215343d432812e29bd6369783679b210:/.zsh/zshrc/parts.d/50-ssh?ds=inline 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 }