fish-shell/share/functions/__fish_complete_external_command.fish
Johannes Altmanninger 36693e4391 Complete empty subcomands consistently
If the command is empty, try to complete starting from the empty command
instead of the whole commandline.
2019-11-05 09:05:46 +01:00

3 lines
125 B
Fish

function __fish_complete_external_command
command find $PATH/ -maxdepth 1 -perm -u+x 2>&- | string match -r '[^/]*$'
end