-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwelcome_prompt
29 lines (24 loc) · 917 Bytes
/
welcome_prompt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ~/.welcome_prompt.sh
#-------------------------------------------------------------------------------
# Welcome Prompt
# prints stats on terminal load
#-------------------------------------------------------------------------------
# welcome and unwelcome functions to toggle welcome_prompt are in .bash_prompt
WELCOME_PROMPT=true
welcome_msg() {
echo ${BG_BLUE}${WHITE} \
Welcome William ${RESET}${WHITE}${BG_BLACK} \ Your wish is our... ${RESET}
echo "------------------------------------------"
echo $(git --version)
if which brew >/dev/null; then
echo $(brew -v)
fi
echo $(ruby -v)
echo "node $(node --version)"
echo $(psql --version)
echo $(heroku --version)
echo $(mongo -version)
# TODO (PJ) add tests for MongoDB, that there is a PG db for the current user
echo "------------------------------------------"
}
if [[ $WELCOME_PROMPT == true ]]; then welcome_msg; fi