Last active
December 21, 2015 06:48
-
-
Save daktak/6266221 to your computer and use it in GitHub Desktop.
.bashrc colors and kernel information
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
#------------------------------------------//// | |
# Colors: | |
#------------------------------------------//// | |
black='\e[0;30m' | |
blue='\e[0;34m' | |
green='\e[0;32m' | |
cyan='\e[0;36m' | |
red='\e[0;31m' | |
purple='\e[0;35m' | |
brown='\e[0;33m' | |
lightgray='\e[0;37m' | |
darkgray='\e[1;30m' | |
lightblue='\e[1;34m' | |
lightgreen='\e[1;32m' | |
lightcyan='\e[1;36m' | |
lightred='\e[1;31m' | |
lightpurple='\e[1;35m' | |
yellow='\e[1;33m' | |
white='\e[1;37m' | |
nc='\e[0m' | |
#add this to crontab for how often you want to check for kernel updates (0 0 * * * midnight daily) | |
#wget www.kernel.org --output-document=/tmp/kernel.org.html | |
clear | |
echo -ne "${red}Today is:\t\t${cyan}" `date`; echo "" | |
echo -e "${red}Kernel Information: \t${cyan}" `uname -smr` | |
echo -e "${red}Latest Stable Kernel: \t${cyan}" `grep -A 1 latest_link /tmp/kernel.org.html | tail -1 | sed 's/.*">//' | sed 's/<.*//'` | |
echo -e "${red}Latest Gentoo Kernel: \t${cyan}" `eix gentoo-sources | grep -B 1 symlink | head -n1 | sed 's/).*//' | sed 's/.*(//' ` | |
echo -e "\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment