Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 684 Bytes
#Load in .bashrc -------------------------------------------------
source ~/.bashrc
# Identify OS and Machine -----------------------------------------
export OS=`uname -s | sed -e 's/ */-/g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
export OSVERSION=`uname -r`; OSVERSION=`expr "$OSVERSION" : '[^0-9]*\([0-9]*\.[0-9]*\)'`
export MACHINE=`uname -m | sed -e 's/ */-/g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
# Note, default OS is assumed to be OSX
# Hello Messsage --------------------------------------------------
echo -ne "${COLOR_NC}Uptime: "; uptime
echo -ne "${COLOR_NC}Server time is: "; date
You can’t perform that action at this time.