#!/bin/bash # TODO allow debug to have managment flags and levels function debug () { [[ $BASH_DEBUG ]] && echo -e "#### DEBUG ####\n $@ \n#####" >&2 } # alias debug_on="sudo -i uncomment BASH_DEBUG /etc/bash.bashrc" # alias debug_off="sudo -i comment BASH_DEBUG /etc/bash.bashrc"