fish-shell/tests/__fish_complete_directories.in
Kurtis Rader da09a915f2 improve __fish_complete_directories function
Reviewing a PR for a completion script caused me to look at the
implementation for the `__fish_complete_directories` function. Which in
turn lead me to create this change to improve its implementation and add
unit tests for the function.
2017-04-11 13:45:53 -07:00

19 lines
597 B
Fish

cd ..
mkdir test/data/abc
mkdir test/data/abcd
touch test/data/af
touch test/data/abcdf
mkdir test/data/xy
mkdir test/data/xyz
touch test/data/xyf
touch test/data/xyzf
echo \# __fish_complete_directories test/z
__fish_complete_directories test/z
echo \# __fish_complete_directories test/d
__fish_complete_directories test/d
echo \# __fish_complete_directories test/data
__fish_complete_directories test/data
echo \# __fish_complete_directories test/data/
__fish_complete_directories test/data/
echo \# __fish_complete_directories test/data/abc
__fish_complete_directories test/data/abc 'abc dirs'