Initial commit (Clean history)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Invoke tab-completion script for the fish shell
|
||||
# Copy it to the ~/.config/fish/completions directory
|
||||
|
||||
function __complete_{binary}
|
||||
{binary} --complete -- (commandline --tokenize)
|
||||
end
|
||||
|
||||
# --no-files: Don't complete files unless invoke gives an empty result
|
||||
# TODO: find a way to honor all binary_names
|
||||
complete --command {binary} --no-files --arguments '(__complete_{binary})'
|
||||
Reference in New Issue
Block a user