This is not a Christmas post. I kind of forgot it was Christmas Eve until my mom called just now. So I edited this post to start with “Merry Christmas.” I hope that brings cheer to your life.
Hello! I am having this problem with fzf_cd whenever i cd:
ind: unknown predicate -LE' shortest: command not found in command substitution called on line 32 of file ~/.config/fish/functions/fcd_ffmark.fish in function 'fcd_ffmark' with arguments 'A1' in command substitution in function '__fuzzy_cd_chdir' with arguments 'A1' in function 'cd' with arguments 'A1' ~/.config/fish/functions/fcd_ffmark.fish (line 32): Unknown command set found (shortest $results) ^~~~~~~~~~~~~~~~~~^ in function 'fcd_ffmark' with arguments 'A1' in command substitution in function '__fuzzy_cd_chdir' with arguments 'A1' in function 'cd' with arguments 'A1' find: unknown predicate -LE’
shortest: command not found
in command substitution
called on line 40 of file ~/.config/fish/functions/fcd_ffmark.fish
in function ‘fcd_ffmark’ with arguments ‘A1’
in command substitution
in function ‘__fuzzy_cd_chdir’ with arguments ‘A1’
in function ‘cd’ with arguments ‘A1’
~/.config/fish/functions/fcd_ffmark.fish (line 40): Unknown command
set found (shortest $results)
^~~~~~~~~~~~~~~~~~^
in function ‘fcd_ffmark’ with arguments ‘A1’
in command substitution
in function ‘__fuzzy_cd_chdir’ with arguments ‘A1’
in function ‘cd’ with arguments ‘A1’
I installed it trough fisher. I saw that on the fisher version the file is called differently, so I changed it. However it’s giving me an error when calling the find function in the fcd_ffmar.fish here “set -l results (find -LE -s “$MARKPATH” -iregex “$MARKPATH/$regex” -type d -maxdepth 1 | head -n 1 | tr -d “\n”)”
I looked into it and apparently, those flags only exist on the macOS version of the find function, not on the linux version ( I am using Linux mint). I am not a scripting expert, would you maybe know how to substitute the flags to make it work on linux too?
-L follows symlinks, which would be vital if you were using it to work with jump. And -E should probably exist on the linux version, it causes the expression to be interpreted as regex. I’ve never tested it on anything but Mac, so not sure what all would need to be replaced.