Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions spotify
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
showHelp () {
echo "Usage:";
echo;
echo " `basename $0` <command>";
echo " `baseline $0` [--no-color|-p] <command>";
echo;
echo "Commands:";
echo;
Expand Down Expand Up @@ -57,9 +57,11 @@ showHelp () {
}

cecho(){
bold=$(tput bold);
green=$(tput setaf 2);
reset=$(tput sgr0);
if [ ! $no_color ]; then
bold=$(tput bold);
green=$(tput setaf 2);
reset=$(tput sgr0);
fi
echo $bold$green"$1"$reset;
}

Expand Down Expand Up @@ -87,6 +89,10 @@ else
sleep 2
fi
fi
if [ $1 == "--no-color" ] || [ $1 == "-p" ]; then
no_color=1
shift
fi
while [ $# -gt 0 ]; do
arg=$1;

Expand Down