Commit b3c2760b authored by Silvio Rhatto's avatar Silvio Rhatto
Browse files

Minor zsh completion fixes

parent 6ae4c388
2014-08-21 - Silvio Rhatto <rhatto@riseup.net>
Shell completions: fix handling of keyrings with '-' in their names
and minor zsh fixes.
Edit: Unset RELATIVE_PATH before encrypting file
......
......@@ -70,7 +70,7 @@ _keyringer() {
case "$words[3]" in
recipients)
words[5]="$(echo $words[5] | sed -e "s|^/||")" # TODO: avoid leading slash
compadd "$@" $(cd $keyring_path/config/recipients && ls --color=never -p $words[5]'*' 2> /dev/null)
compadd "$@" $(cd $keyring_path/config/recipients && ls --color=never -p $words[5]* 2> /dev/null)
;;
genpair)
words[5]="$(echo $words[5] | sed -e "s|^/||")" # TODO: avoid leading slash
......@@ -87,7 +87,7 @@ _keyringer() {
esac
;;
*)
if [ $words[3] == "git" ]; then
if [[ $words[3] == "git" ]]; then
# TODO
true
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment