2017-11-27 03:11:29 +00:00
|
|
|
# -*- mode:fish; tab-width:4 -*-
|
|
|
|
#
|
|
|
|
# fish-completion for fish-bd
|
|
|
|
# https://github.com/0rax/fish-bd
|
|
|
|
#
|
|
|
|
|
2021-11-18 18:27:17 +00:00
|
|
|
complete -c bd -f
|
2017-11-27 03:11:29 +00:00
|
|
|
|
2019-05-05 10:53:09 +00:00
|
|
|
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)"
|
2017-11-27 03:11:29 +00:00
|
|
|
complete -c bd -s h -x -d "Display help and exit"
|
|
|
|
|
|
|
|
function __fish_bd_complete_dirs
|
2020-03-09 18:36:12 +00:00
|
|
|
string split / -- $PWD
|
2017-11-27 03:11:29 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
complete -c bd -a '(__fish_bd_complete_dirs)'
|