wx-header(){ if [[ $2 == "h1" ]] then echo "==============================" wx-repeat " " $((30/2-${#1}/2)) echo -n "$wxBold" echo -n "$1" echo -n "$wxNormal" echo "" echo "==============================" fi if [[ $2 == "h2" || -z $2 ]] then wx-start wx-repeat " " $((30/2-6/2-${#1}/2)) echo -n ">> $1 <<" echo "" echo "------------------------------" fi }