]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Minor cleanup at zsh completion
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Aug 2013 14:35:33 +0000 (11:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Aug 2013 14:35:33 +0000 (11:35 -0300)
lib/keyringer/completions/zsh/_keyringer

index dd8775c96f0f89a78c4866271774dde71820d776..c8ada9b9dee07bf14f0c600bb2f6454743f9c353 100644 (file)
@@ -1,13 +1,9 @@
 #compdef keyringer
 
-# TODO: how to call _git() properly?
 # Completion for git subcommand
 _keyringer_git_complete() {
-  (
-    local CURRENT=1
-    local words=($*)
-    echo `_git`
-  )
+  # TODO: how to call _git() properly?
+  return
 }
 
 _keyringer() {
@@ -81,7 +77,7 @@ _keyringer() {
         esac
         ;;
       *)
-        if [ $words[3] == "$git" ]; then
+        if [ $words[3] == "git" ]; then
           # TODO
           true
         fi