set FILE="~/.config/cshrc.linux" set TEXT="Linux .cshrc directives" set VERSION=0.1 if ( $DEBUG == "1" ) echo "${FILE} (${TEXT}) v${VERSION}" ############################################################################### ### Set the default paths ##################################################### ############################################################################### setenv LC_CTYPE en_US.ISO-8859-1 # For best viewing in mutt setenv OSVERSION 'unknown' setenv OSFLAVOR 'unknown' if (-f /etc/debian_version) then if (-f /etc/lsb-release) then setenv OSFLAVOR 'ubuntu' setenv OSVERSION `cat /etc/lsb-release | grep DISTRIB_RELEASE \ | awk -F= ' { print $2 } '` else setenv OSFLAVOR 'debian' setenv OSVERSION `cat /etc/debian_version` endif else if (-f /etc/redhat-release) then setenv OSFLAVOR 'redhat' setenv OSVERSION `rpm -qa | grep redhat-release | awk -F- ' { print $3 } '` endif