From 0729c2be4c1172fa4334926c6e60fdec2a867633 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 7 Jan 2021 16:53:15 +0100 Subject: [PATCH] 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. --- share/completions/..fish | 1 + share/completions/source.fish | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 share/completions/..fish create mode 100644 share/completions/source.fish diff --git a/share/completions/..fish b/share/completions/..fish new file mode 100644 index 000000000..8dc864d1a --- /dev/null +++ b/share/completions/..fish @@ -0,0 +1 @@ +complete . -w source diff --git a/share/completions/source.fish b/share/completions/source.fish new file mode 100644 index 000000000..f80bd6b8f --- /dev/null +++ b/share/completions/source.fish @@ -0,0 +1,2 @@ +complete source -k -xa '(__fish_complete_suffix .fish)' +complete source -s h -l help -d 'Display help and exit'