generated from me/template-mit
Use log rather than echo. Add quotes on color assignments.
This commit is contained in:
22
rc_shared.sh
22
rc_shared.sh
@@ -7,18 +7,18 @@
|
||||
export PATH="$PATH:~/bin-shared:~/.bin-shared"
|
||||
|
||||
# PS1 Colors
|
||||
export PURPLE=`tput setaf 55`
|
||||
export ORANGE=`tput setaf 208`
|
||||
export GREEN=`tput setaf 34`
|
||||
export PURPLE="`tput setaf 55`"
|
||||
export ORANGE="`tput setaf 208"`
|
||||
export GREEN="`tput setaf 34`"
|
||||
|
||||
export RED=`tput setaf 196`
|
||||
export SCARLET=`tput setaf 160`
|
||||
export YELLOW=`tput setaf 226`
|
||||
export RED="`tput setaf 196`"
|
||||
export SCARLET="`tput setaf 16"0`
|
||||
export YELLOW="`tput setaf 226"`
|
||||
|
||||
export GRAY=`tput setaf 243`
|
||||
export GRAY="`tput setaf 243`"
|
||||
|
||||
export RESET=`tput sgr0`
|
||||
export BOLD=`tput bold`
|
||||
export RESET="`tput sgr0`"
|
||||
export BOLD="`tput bold`"
|
||||
|
||||
|
||||
## Aliases ##
|
||||
@@ -29,7 +29,7 @@ export BOLD=`tput bold`
|
||||
# Related specifically to this project.
|
||||
|
||||
function update-shared {
|
||||
echo "Reloading the '~/.rc_shared' file from env-shared."
|
||||
log "Reloading the '~/.rc_shared' file from env-shared.\n"
|
||||
branch="$1"
|
||||
if [[ -z "$branch" ]]; then
|
||||
branch="dev"
|
||||
@@ -44,7 +44,7 @@ function update-shared {
|
||||
|
||||
mv -v $dir ~/TRASH/"$dir-`date "+%Y%m%d-%H%M%S"`"
|
||||
|
||||
echo "Complete! Please note this does NOT update bin files."
|
||||
blog "Complete! Please note this does NOT update bin files."
|
||||
}
|
||||
alias shared-update="update-shared"
|
||||
alias reload-shared="update-shared"
|
||||
|
||||
Reference in New Issue
Block a user