fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian HomborgDon't use removed complete optionsc6caa06db

master
533 B18 linesraw
1# -*-  mode:fish; tab-width:4  -*-
2#
3# fish-completion for fish-bd
4# https://github.com/0rax/fish-bd
5#
6
7complete -c bd -f
8
9complete -c bd -s c -d "Classic mode: goes back to the first directory named as the string"
10complete -c bd -s s -d "Seems mode: goes back to the first directory containing string"
11complete -c bd -s i -d "Case insensitive move (implies seems mode)"
12complete -c bd -s h -x -d "Display help and exit"
13
14function __fish_bd_complete_dirs
15    string split / -- $PWD
16end
17
18complete -c bd -a '(__fish_bd_complete_dirs)'