not using old Bourne shell, so no need to use backticks

This commit is contained in:
Matt Hamilton 2015-09-30 12:02:43 -04:00
parent c2dde89fb3
commit 92ed50e5ec
8 changed files with 11 additions and 11 deletions

View File

@ -45,7 +45,7 @@ _artisan_get_command_list () {
_artisan () { _artisan () {
if [ -f artisan ]; then if [ -f artisan ]; then
compadd `_artisan_get_command_list` compadd $(_artisan_get_command_list)
fi fi
} }

View File

@ -62,10 +62,10 @@ _composer () {
if [ -f composer.json ]; then if [ -f composer.json ]; then
case $state in case $state in
command) command)
compadd `_composer_get_command_list` compadd $(_composer_get_command_list)
;; ;;
*) *)
compadd `_composer_get_required_list` compadd $(_composer_get_required_list)
;; ;;
esac esac
else else
@ -73,4 +73,4 @@ _composer () {
fi fi
} }
compdef _composer composer compdef _composer composer

View File

@ -45,7 +45,7 @@ _console_get_command_list () {
_console () { _console () {
if [ -f console ]; then if [ -f console ]; then
compadd `_console_get_command_list` compadd $(_console_get_command_list)
fi fi
} }

View File

@ -20,7 +20,7 @@ local curcontext=$curcontext state line
declare -A opt_args declare -A opt_args
declare target_list declare target_list
target_list=(`fab --shortlist 2>/dev/null`) target_list=($(fab --shortlist 2>/dev/null))
_targets() { _targets() {
_describe -t commands "fabric targets" target_list _describe -t commands "fabric targets" target_list

View File

@ -37,10 +37,10 @@ case $state in
(install) (install)
;; ;;
(restart|stop) (restart|stop)
_values 'items' `lunchy status | awk '{print $3}' ` 2>/dev/null && ret=0 _values 'items' $(lunchy status | awk '{print $3}') 2>/dev/null && ret=0
;; ;;
*) *)
_values 'items' `lunchy ls` 2>/dev/null && ret=0 _values 'items' $(lunchy ls) 2>/dev/null && ret=0
;; ;;
esac esac
;; ;;

View File

@ -40,7 +40,7 @@ __nvm_aliases(){
local aliases local aliases
aliases="" aliases=""
if [ -d $NVM_DIR/alias ]; then if [ -d $NVM_DIR/alias ]; then
aliases="`cd $NVM_DIR/alias && ls`" aliases="$(cd $NVM_DIR/alias && ls)"
fi fi
echo "${aliases}" echo "${aliases}"
} }

View File

@ -17,7 +17,7 @@
# FIXME This should be rewritten using up-to-date ZSH completion API. # FIXME This should be rewritten using up-to-date ZSH completion API.
compadd `thor list | grep thor | cut -d " " -f 2` compadd $(thor list | grep thor | cut -d " " -f 2)
# Local Variables: # Local Variables:
# mode: Shell-Script # mode: Shell-Script

View File

@ -1 +1 @@
fpath+="`dirname $0`/src" fpath+="$(dirname $0)/src"