Usage

In case you want to have the output of a command in the CLI in bash or zsh saved into a variable, you can do that via the following:

1
2
3
variable_name____=$(your_command_here)
npm_package_list_=$(npm list -g &> /dev/null)
admin_username___=$(ahoy drush uinf --uid=1 --fields=name --format=string)

And you can re-use these variables in the command like, for example

1
2
3
admin_username=$(ahoy drush uinf --uid=1 --fields=name --format=string)
ahoy drush uublk $admin_username
ahoy login

Reference