# Process config
source $config/config
path="`eval echo '$'$instance`"
- keyrings="`ls $config | sed -e 's/config//'`"
+ keyrings="`ls --color=never $config | sed -e 's/config//'`"
# Available instances
instances="`echo $keyrings | sed -e 's/ /|/'`"
elif [ "${#COMP_WORDS[@]}" == "5" ]; then
case "${command}" in
recipients)
- opts="$(cd $path/config/recipients && ls -p ${cur}* 2> /dev/null)"
+ opts="$(cd $path/config/recipients && ls --color=never -p ${cur}* 2> /dev/null)"
;;
genpair)
opts="$(bash -c "set -f && keyringer $instance ls -p -d ${cur}*" 2> /dev/null)"
fi
# Process config
- local keyrings="`ls $config | sed -e 's/config//'`"
+ local keyrings="`ls --color=never $config | sed -e 's/config//'`"
source $config/config
keyring_path="`eval echo '$'$words[2]`"
misc)
case "$words[3]" in
recipients)
- compadd "$@" $(cd $keyring_path/config/recipients && ls -p $words[5]* 2> /dev/null)
+ compadd "$@" $(cd $keyring_path/config/recipients && ls --color=never -p $words[5]* 2> /dev/null)
;;
genpair)
# TODO: do not rely on bash