fish-shell/share/completions/bd.fish
David Adam 45fb2024f8 completions: drop shebang from non-executable files
These completion files do not get marked as executable, so they don't
need a shebang.
2020-02-18 21:34:19 +08:00

18 lines
538 B
Fish

# -*- mode:fish; tab-width:4 -*-
#
# fish-completion for fish-bd
# https://github.com/0rax/fish-bd
#
complete -c bd -A -f
complete -c bd -s c -d "Classic mode: goes back to the first directory named as the string"
complete -c bd -s s -d "Seems mode: goes back to the first directory containing string"
complete -c bd -s i -d "Case insensitive move (implies seems mode)"
complete -c bd -s h -x -d "Display help and exit"
function __fish_bd_complete_dirs
string split "/" -- $PWD
end
complete -c bd -a '(__fish_bd_complete_dirs)'