diff options
Diffstat (limited to 'aur.completor.bash')
| -rw-r--r-- | aur.completor.bash | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/aur.completor.bash b/aur.completor.bash index 28117f4..c7513ed 100644 --- a/aur.completor.bash +++ b/aur.completor.bash @@ -11,11 +11,7 @@ cmd_opts=( ) reply_aur_pkgs() { - pkgs=( $(find ~/.aur/ -type d -mindepth 1 -maxdepth 1) ); - for i in "${!pkgs[@]}"; - do - pkgs[$i]=$(basename "${pkgs[$i]}"); - done; + pkgs=`basename -a ~/.aur/*/ | paste -d ' ' -s -` - COMPREPLY=( $(compgen -W "${pkgs[*]}" -- "$cur") ) + COMPREPLY=( $(compgen -W "$pkgs" -- "$cur") ) } |
