mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-30 10:05:58 +00:00
[shell] Use cd -- (#2659)
Otherwise directories starting with '-' may treated as options.
This commit is contained in:
1 parent
3715cd349d
commit
205f885d69
3 files changed
+3
-3
No files matched your search
@@ -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