Skip to content

Instantly share code, notes, and snippets.

@amcooper
Last active October 26, 2016 03:22
Show Gist options
  • Save amcooper/9be84adc23878c2cc356452e85abd589 to your computer and use it in GitHub Desktop.
Save amcooper/9be84adc23878c2cc356452e85abd589 to your computer and use it in GitHub Desktop.
This welcome prompt prints stats on terminal load
#-------------------------------------------------------------------------------
# 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 $(git --version)
if which brew >/dev/null; then
echo $(brew -v)
fi
echo $(ruby -v)
echo $(psql --version)
echo $(rails -v)
echo $(heroku --version)
echo "------------------------------------------"
echo "type ${BOLD}unwelcome${RESET} to remove this message"
}
if [[ $WELCOME_PROMPT == true ]]; then welcome_msg; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment