add option to specify git branch and fix colors

This commit is contained in:
Mark Riedesel 2019-07-19 14:45:48 -05:00
parent 84471bec5d
commit 943e9b5da5

View file

@ -5,7 +5,7 @@ basedir=$homedir/.dotfiles
bindir=$homedir/bin bindir=$homedir/bin
gitbase=git://github.com/Klowner/dotfiles.git gitbase=git://github.com/Klowner/dotfiles.git
gitorigin=git@github.com:Klowner/dotfiles.git gitorigin=git@github.com:Klowner/dotfiles.git
gitbranch=refresh gitbranch=${GIT_BRANCH:-master}
tarball=http://github.com/Klowner/dotfiles/tarball/$gitbranch tarball=http://github.com/Klowner/dotfiles/tarball/$gitbranch
function has() { function has() {
@ -13,11 +13,11 @@ function has() {
} }
function note() { function note() {
echo "^[[32;1m * ^[[0m$*" echo -e "\e[32;1m * \e[0m$*"
} }
function warn() { function warn() {
echo "^[[31;1m * ^[[0m$*" echo -e "\e[31;1m * \e[0m$*"
} }
function die() { function die() {