2
0
mirror of https://github.com/junegunn/fzf synced 2024-10-30 09:20:14 +00:00

[fish] Do not use builtin cd

`builtin cd` of fish doesn't support `cd -`

Close #2967
This commit is contained in:
Junegunn Choi 2022-09-20 16:58:43 +09:00
parent b5efc68737
commit f931e53890
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

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" ]
builtin cd -- $result
cd -- $result
# Remove last token from commandline.
commandline -t ""