From 205f885d6941eac47004779d9125df1463458fdd Mon Sep 17 00:00:00 2001 From: zsugabubus Date: Fri, 19 Nov 2021 01:36:28 +0000 Subject: [shell] Use cd -- (#2659) Otherwise directories starting with '-' may treated as options. --- shell/key-bindings.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/key-bindings.fish') diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index 6f73903d..370ef1b6 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -87,7 +87,7 @@ function fzf_key_bindings eval "$FZF_ALT_C_COMMAND | "(__fzfcmd)' +m --query "'$fzf_query'"' | read -l result if [ -n "$result" ] - cd $result + cd -- $result # Remove last token from commandline. commandline -t "" -- cgit v1.2.3