Update fish

This commit is contained in:
Hydroxycarbamide 2023-04-03 16:40:39 +02:00
parent f5306476ea
commit 123172a72b
16 changed files with 382 additions and 41 deletions

View file

@ -31,7 +31,8 @@ function _fzf_search_directory --description "Search the current directory. Repl
# Then, the user only needs to hit Enter once more to cd into that directory.
if test (count $file_paths_selected) = 1
set commandline_tokens (commandline --tokenize)
if test "$commandline_tokens" = "$token" -a -d "$file_paths_selected"
if test "$commandline_tokens" = "$token" -a -d "$file_paths_selected" \
-a (fd --version | string replace --regex --all '[^\d]' '') -lt 840
set file_paths_selected $file_paths_selected/
end
end