Re-add completions for source and ., to prefer *.fish files

This is mildly useful when activating virtualenvs.  We had remove
these files earlier, but since there are no more false negatives from
__fish_complete_suffix it seems safe to re-add them.
This commit is contained in:
Johannes Altmanninger 2021-01-07 16:53:15 +01:00
parent 7a53c40fd4
commit 0729c2be4c
2 changed files with 3 additions and 0 deletions

1
share/completions/..fish Normal file
View File

@ -0,0 +1 @@
complete . -w source

View File

@ -0,0 +1,2 @@
complete source -k -xa '(__fish_complete_suffix .fish)'
complete source -s h -l help -d 'Display help and exit'