Revision 9167
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
201 | 201 |
echo_params |
202 | 202 |
} |
203 | 203 |
|
204 |
alias echo_run_prep='cmd2rel_path; echo_cmd "$@"; cmd_indent'
|
|
204 |
alias echo_run_prep='{ cmd2rel_path; echo_cmd "$@"; cmd_indent; }'
|
|
205 | 205 |
|
206 | 206 |
fi # load new aliases |
207 | 207 |
if self_being_included; then |
lib/sh/db.sh | ||
---|---|---|
6 | 6 |
# using prefixed connection vars |
7 | 7 |
alias use_local='declare prefix=local_; import_vars' |
8 | 8 |
alias use_remote='declare prefix=remote_; import_vars' |
9 |
alias use_local_remote='use_local; use_remote' # *must* be run inside a function |
|
9 |
alias use_local_remote='{ use_local; use_remote; }' |
|
10 |
# *must* be run inside a function |
|
10 | 11 |
|
11 | 12 |
quote='"' |
12 | 13 |
|
Also available in: Unified diff
*{.sh,run}: multi-command aliases: enclose in {} so the alias can be used after ||