mirror of
https://github.com/junegunn/fzf.git
synced 2026-02-20 00:28:42 +08:00
[shell] Use cd -- (#2659)
Otherwise directories starting with '-' may treated as options.
This commit is contained in:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user