Last active
October 26, 2016 03:22
-
-
Save amcooper/9be84adc23878c2cc356452e85abd589 to your computer and use it in GitHub Desktop.
This welcome prompt prints stats on terminal load
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------- | |
# 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