aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_test_arg.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2007-01-30 10:42:33 +1000
committerGravatar axel <axel@liljencrantz.se>2007-01-30 10:42:33 +1000
commit76d9051605c9a5e0f80a441b5398c4fb02d508e7 (patch)
treea43da900813551ae0bd3696d565604f7c4f9d60a /share/functions/__fish_test_arg.fish
parentca2b2103d3f87c7b22d3e1e75e65389e1cbf19fd (diff)
Add vim completions, written by Velko Hristov
darcs-hash:20070130004233-ac50b-5c48b940b29ac4f3c377bc88e2abf2e490e9df48.gz
Diffstat (limited to 'share/functions/__fish_test_arg.fish')
-rw-r--r--share/functions/__fish_test_arg.fish9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/functions/__fish_test_arg.fish b/share/functions/__fish_test_arg.fish
new file mode 100644
index 00000000..6ebe8fb0
--- /dev/null
+++ b/share/functions/__fish_test_arg.fish
@@ -0,0 +1,9 @@
+
+function __fish_test_arg --description "Test if the token under the cursor matches the specified wildcard"
+ switch (commandline -ct)
+ case $argv
+ return 0
+ end
+ return 1
+end
+