From 5bdcfbc2ce8b002a80c433ddd2d75063bdf4c366 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Tue, 18 Sep 2018 09:09:54 +0900 Subject: [PATCH] bash completion: make complete helper start with _ It is standard to start complete helpers with underscore to avoid clobbering the function namespace ; like other shells do. It is ironic for a completion helper to make completion less agreable... --- kitty/complete.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/complete.py b/kitty/complete.py index 1bc106c60..4f2fe6e5d 100644 --- a/kitty/complete.py +++ b/kitty/complete.py @@ -44,7 +44,7 @@ _kitty() { compdef _kitty kitty ''', 'bash': ''' -kitty_completions() { +_kitty_completions() { local src local limit # Send all words up to the word the cursor is currently on @@ -55,7 +55,7 @@ kitty_completions() { fi } -complete -o nospace -F kitty_completions kitty +complete -o nospace -F _kitty_completions kitty ''', 'fish': ''' function __kitty_completions