Revision 9252
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
175 | 175 |
|
176 | 176 |
: "${log_level_indent=| }" "${log_indent=}" |
177 | 177 |
export log_level_indent log_indent # propagate to invoked commands |
178 |
alias indent='declare log_indent="$log_indent$log_level_indent"' |
|
179 | 178 |
|
179 |
__caller_indent='log_indent="$log_indent$log_level_indent"' |
|
180 |
alias caller_indent="$__caller_indent" |
|
181 |
alias indent="declare $__caller_indent" |
|
182 |
|
|
180 | 183 |
# usage: in func: PS4++; ... |
181 | 184 |
# outside func: PS4++; ...; PS4-- |
182 | 185 |
alias PS4++='declare PS4="${PS4:0:1}$PS4"' |
Also available in: Unified diff
lib/sh/util.sh: added caller_indent alias