Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 39 lines (33 sloc) 1.168 kb
#!/bin/bash
if [[ $1 == "-c" ]]; then
GREEN='\033[00;32m'
YELLOW='\033[00;33m'
LRED='\033[01;31m'
RED='\033[00;31m'
PURPLE='\033[00;35m'
CYAN='\033[00;36m'
BLUE='\033[00;34m'
RESTORE='\033[0m'
fi
# Variables
host=$(hostname | sed 's/.local//g')
user=$(whoami)
OS="OS X $(sw_vers -productVersion)"
shell="$SHELL"
disk=`df | head -2 | tail -1 | awk '{print $5}'`
brew_packages="`brew list -l | wc -l | awk '{print $1 }'`"
echo -e "
${GREEN} ###
${GREEN} ####
${GREEN} ###
${GREEN} ####### ## #######${RESTORE} User: $user
${YELLOW} ######################${RESTORE} Hostname: $host
${YELLOW} #####################${RESTORE} $OS
${LRED} ####################${RESTORE} Kernel: $(uname)
${RED} ####################${RESTORE} Shell: $shell
${RED} #####################${RESTORE} Disk: $disk
${PURPLE} ######################${RESTORE} Packages(brew): $brew_packages
${PURPLE} ####################
${BLUE} ################
${BLUE} #### #####
"
Jump to Line
Something went wrong with that request. Please try again.