mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-21 14:46:28 +00:00
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...
This commit is contained in:
parent
74e9bf4f31
commit
5bdcfbc2ce
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue