[shell] Use cd -- (#2659)

Otherwise directories starting with '-' may treated as options.
This commit is contained in:
zsugabubus
2021-11-19 01:36:28 +00:00
committed by GitHub
parent 3715cd349d
commit 205f885d69
3 changed files with 3 additions and 3 deletions

View File

@@ -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 ""