diff --git a/lazy.sh b/lazy.sh index 7556321..fd28f68 100755 --- a/lazy.sh +++ b/lazy.sh @@ -1,8 +1,13 @@ #!/bin/sh set -e -bold=$(tput bold) -normal=$(tput sgr0) +if [ ! -z "$TERM" ]; then + bold=$(tput bold) + normal=$(tput sgr0) +else + bold="" + normal="" +fi step() { echo "${bold}$1${normal}"