about summary refs log tree commit diff
path: root/fish/functions/__xtools_complete_one_package.fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish/functions/__xtools_complete_one_package.fish')
-rw-r--r--fish/functions/__xtools_complete_one_package.fish4
1 files changed, 4 insertions, 0 deletions
diff --git a/fish/functions/__xtools_complete_one_package.fish b/fish/functions/__xtools_complete_one_package.fish
new file mode 100644
index 0000000..fcaec36
--- /dev/null
+++ b/fish/functions/__xtools_complete_one_package.fish
@@ -0,0 +1,4 @@
+function __xtools_complete_one_package
+    [ (count (commandline -poc)) -eq 1 ]
+    and __xtools_complete_packages
+end