summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-09-28 17:31:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-09-28 17:31:56 -0300
commit8b2238e80d23ca77eac360e442b2334c543d1d09 (patch)
tree71e65d132a195a449059e34f4d128d42dbc23dac
parentb75c11d9a846f39c9de6c8c825a3e77cbe4de12c (diff)
downloadkeyringer-8b2238e80d23ca77eac360e442b2334c543d1d09.tar.gz
keyringer-8b2238e80d23ca77eac360e442b2334c543d1d09.tar.bz2
Development: adding a subcommand
-rw-r--r--development.mdwn8
-rw-r--r--lib/keyringer/completions/zsh/_keyringer2
2 files changed, 9 insertions, 1 deletions
diff --git a/development.mdwn b/development.mdwn
index 94c8a24..1313e9a 100644
--- a/development.mdwn
+++ b/development.mdwn
@@ -94,6 +94,14 @@ Run lintian (or [add it to your pbuilder hooks](http://askubuntu.com/questions/1
lintian --info --display-info --pedantic --color auto \
../build-area/keyringer_$VERSION*.changes
+Adding a subcommand
+-------------------
+
+When adding a new subcommand, ensure:
+
+* Manpage is updated.
+* Shell completions are updated.
+
References
----------
diff --git a/lib/keyringer/completions/zsh/_keyringer b/lib/keyringer/completions/zsh/_keyringer
index 3a10347..47a83fc 100644
--- a/lib/keyringer/completions/zsh/_keyringer
+++ b/lib/keyringer/completions/zsh/_keyringer
@@ -19,8 +19,8 @@ _keyringer() {
fi
# Process config
- local keyrings="`ls --color=never $config | sed -e 's/config//'`"
source $config/config
+ local keyrings="`ls --color=never $config | sed -e 's/config//'`"
local keyring_path="`eval echo '$'$words[2]`"
_arguments \