mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-23 17:53:38 +08:00
c6caa06dbe
This was "--authoritative" (and unauthoritative). It was meant to make fish mark everything that couldn't be generated via the completions as an error, it was removed years ago and has been a no-op since then.
19 lines
533 B
Fish
19 lines
533 B
Fish
# -*- mode:fish; tab-width:4 -*-
|
|
#
|
|
# fish-completion for fish-bd
|
|
# https://github.com/0rax/fish-bd
|
|
#
|
|
|
|
complete -c bd -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)'
|