]> git.madduck.net Git - code/vcsh.git/blobdiff - _vcsh

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Make seed-gitignore more robust and only update the ignore if needed
[code/vcsh.git] / _vcsh
diff --git a/_vcsh b/_vcsh
index fce8794cb9fd7c6906eacd08d247bb4f2c642a0c..5a14f647a8971db6fca05a81d69cb7bf73dc136b 100644 (file)
--- a/_vcsh
+++ b/_vcsh
@@ -1,6 +1,7 @@
 #compdef vcsh
 
 #              use\:"use/enter repo"
+#              exit\:"exit repo"
 _arguments \
        ':subcommand:((
                help\:"display help"
@@ -8,5 +9,5 @@ _arguments \
                run\:"run command on repo"
                init\:"init & clone from repo"
                clone\:"clone from repo"
-               exit\:"exit repo"
+               seed-gitignore\:"seed .gitignore.d/foo from git ls-files"
        ))'