Browse Source

alias $*

main
pvincent 2 weeks ago
parent
commit
96f58c721d
  1. 2
      poc

2
poc

@ -14,7 +14,7 @@ function is_true {
# FIXME: define an alias to bypass ARG evaluation when unnecessary! # FIXME: define an alias to bypass ARG evaluation when unnecessary!
# example: # example:
# alias toto="bash -c \"[[ \\\$MIAOU_DEBUG == 'true' ]] && echo yes || echo nope\""
# alias toto="bash -c \"[[ \\\$MIAOU_DEBUG == 'true' ]] && echo yes \\\$* || echo nope\""
function miaou_debug { function miaou_debug {
is_true "${MIAOU_DEBUG}" && >/dev/tty builtin echo -e "\r\e[90mDEBUG <==> \e[95m$*\e[0m" || true is_true "${MIAOU_DEBUG}" && >/dev/tty builtin echo -e "\r\e[90mDEBUG <==> \e[95m$*\e[0m" || true
} }

Loading…
Cancel
Save