0d6656688318

Fix fish tab complete with the new --wraps thing
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 17 Sep 2015 16:49:47 +0000
parents 634131bfbe10
children 1da770d23a21
branches/tags (none)
files fish/functions/ag.fish fish/functions/banner.fish fish/functions/cuts.fish fish/functions/dr.fish fish/functions/g.fish fish/functions/gg.fish fish/functions/h.fish fish/functions/isen.fish fish/functions/md.fish fish/functions/o.fish fish/functions/tm.fish

Changes

--- a/fish/functions/ag.fish	Thu Sep 17 16:38:02 2015 +0000
+++ b/fish/functions/ag.fish	Thu Sep 17 16:49:47 2015 +0000
@@ -1,4 +1,4 @@
-function ag -d "Run Ag with appropriate options."
+function ag -d "Run Ag with appropriate options." --wraps "ag"
     if begin test -f '.agignore'; and grep -q 'pragma: skipvcs' '.agignore'; end
         # If .agignore contains pragma: skipvcs, then we'll run ag in
         # "disregard .gitignore/.hgignore/svn:ignore" mode.  This lets us
--- a/fish/functions/banner.fish	Thu Sep 17 16:38:02 2015 +0000
+++ b/fish/functions/banner.fish	Thu Sep 17 16:49:47 2015 +0000
@@ -1,3 +1,3 @@
-function banner -d "Show a fun twitch banner"
+function banner -d "Show a fun twitch banner" --wraps "figlet"
     figlet -f ogre -w9999 $argv | cowsay -W 9999 -n -p | lolcat
 end
--- a/fish/functions/cuts.fish	Thu Sep 17 16:38:02 2015 +0000
+++ b/fish/functions/cuts.fish	Thu Sep 17 16:49:47 2015 +0000
@@ -1,3 +1,3 @@
-function cuts -d "Cut on space characters instead of tabs"
+function cuts -d "Cut on space characters instead of tabs" --wraps "cut"
     cut -d' ' $argv
 end
--- a/fish/functions/dr.fish	Thu Sep 17 16:38:02 2015 +0000
+++ b/fish/functions/dr.fish	Thu Sep 17 16:49:47 2015 +0000
@@ -1,3 +1,3 @@
-function dr -d "dr is 'tr -d'"
+function dr -d "dr is 'tr -d'" --wraps "tr"
     tr -d $argv
 end
--- a/fish/functions/g.fish	Thu Sep 17 16:38:02 2015 +0000
+++ b/fish/functions/g.fish	Thu Sep 17 16:49:47 2015 +0000
@@ -1,3 +1,3 @@
-function g -d "git"
+function g -d "git" --wraps "git"
     git $argv
 end
--- a/fish/functions/gg.fish	Thu Sep 17 16:38:02 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-function gg -d "git g"
-    git g $argv
-end
--- a/fish/functions/h.fish	Thu Sep 17 16:38:02 2015 +0000
+++ b/fish/functions/h.fish	Thu Sep 17 16:49:47 2015 +0000
@@ -1,3 +1,3 @@
-function h -d "hg"
+function h -d "hg" --wraps "hg"
     hg $argv
 end
--- a/fish/functions/isen.fish	Thu Sep 17 16:38:02 2015 +0000
+++ b/fish/functions/isen.fish	Thu Sep 17 16:49:47 2015 +0000
@@ -1,3 +1,3 @@
-function isen -d "Translate from Icelandic to English"
+function isen -d "Translate from Icelandic to English" --wraps "trans"
     trans -b -u firefox is:en $argv
 end
--- a/fish/functions/md.fish	Thu Sep 17 16:38:02 2015 +0000
+++ b/fish/functions/md.fish	Thu Sep 17 16:49:47 2015 +0000
@@ -1,3 +1,3 @@
-function md -d "mkdir"
+function md -d "mkdir" --wrap "mkdir"
     mkdir -p $argv
 end
--- a/fish/functions/o.fish	Thu Sep 17 16:38:02 2015 +0000
+++ b/fish/functions/o.fish	Thu Sep 17 16:49:47 2015 +0000
@@ -1,3 +1,3 @@
-function o -d "open"
+function o -d "open" --wraps "open"
     open $argv
 end
--- a/fish/functions/tm.fish	Thu Sep 17 16:38:02 2015 +0000
+++ b/fish/functions/tm.fish	Thu Sep 17 16:49:47 2015 +0000
@@ -1,3 +1,3 @@
-function tm -d "tmux"
+function tm -d "tmux" --wraps "tmux"
     tmux -u2 $argv
 end