summaryrefslogtreecommitdiff
path: root/completions/slapt-get
diff options
context:
space:
mode:
Diffstat (limited to 'completions/slapt-get')
-rw-r--r--completions/slapt-get16
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/slapt-get b/completions/slapt-get
index 512981b6..9b249f19 100644
--- a/completions/slapt-get
+++ b/completions/slapt-get
@@ -17,7 +17,7 @@ _slapt_get()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help )' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_help "$1" --help)' -- "$cur") )
[[ $COMPREPLY == *= ]] && compopt -o nospace
[[ $COMPREPLY ]] && return
fi
@@ -56,22 +56,22 @@ _slapt_get()
# slapt-get will fail to search for "^name-version"
# it can search for names only
local name=${cur%%-*}
- COMPREPLY=( $( LC_ALL=C "$1" -c "$config" --search "^$name" 2> \
- /dev/null | LC_ALL=C command sed -ne "/^$cur/{s/ .*$//;p}" ) )
+ COMPREPLY=( $(LC_ALL=C "$1" -c "$config" --search "^$name" \
+ 2>/dev/null | LC_ALL=C command sed -ne "/^$cur/{s/ .*$//;p}") )
return
;;
avl) # --install|-i|
- COMPREPLY=( $( LC_ALL=C "$1" -c "$config" --available 2> \
- /dev/null | LC_ALL=C command sed -ne "/^$cur/{s/ .*$//;p}" ) )
+ COMPREPLY=( $(LC_ALL=C "$1" -c "$config" --available \
+ 2>/dev/null | LC_ALL=C command sed -ne "/^$cur/{s/ .*$//;p}") )
return
;;
ins) # --remove|--filelist
- COMPREPLY=( $( cd /var/log/packages; compgen -f -- "$cur" ) )
+ COMPREPLY=( $(cd /var/log/packages; compgen -f -- "$cur") )
return
;;
set) # --install-set
- COMPREPLY=( $( compgen -W 'a ap d e f k kde kdei l n t tcl x
- xap xfce y' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'a ap d e f k kde kdei l n t tcl x
+ xap xfce y' -- "$cur") )
return
;;
esac