Commits

Toby Davies committed 1f1d3f2

remove TGL shit

Comments (0)

Files changed (3)

 cr="${$(print "_\r_")[2]}"
 crlf="$cr$lf"
 
-export uni=~/subjects/
-
-export brit=~/.purple/logs/jabber/tobyodavies@chat.facebook.com/-100000799571942@chat.facebook.com/
-
 if [ -d ~/py-src ] ; then
-    export PYTHONPATH=~/py-src/
+    export PYTHONPATH="$PYTHONPATH:"$(echo ~/py-src/)
 fi
 
-if [[ -d /mnt/tg/commons/ ]] ; then
-    hash -d IT="/mnt/tg/commons/Information Technology/"
-    hash -d src="/mnt/tg/commons/Information Technology/Source Code"
+if [ -d ~/pyproj ] ; then
+    export PYTHONPATH="$PYTHONPATH:"$(echo ~/pyproj/*/)
 fi
 
+
+
 if [[ -d /var/www ]] ; then
     hash -d www="/var/www"
 fi
-if [[ -d /var/www/test ]] ; then
-    hash -d test="/var/www/test"
-fi
 
-if [[ -d /var/www/new ]] ; then
-    hash -d new="/var/www/new"
-fi
 eterm-color_init(){
     xterm_init
 }
-rxvt-unicode_init(){
+rxvt_init(){
     xterm_init
 }
 
-"${${TERM-dumb}:l}_init"
+case "${${TERM-dumb}:l}" in
+    *rxvt*|*xterm*|eterm-color)
+        #TERM=xterm #fixes broken backspace w/ rxvt
+        xterm_init
+        ;;
+    *) dumb_init
+        ;;
+esac
 DATE=$(date '+%Y-%m-%d')
 BATT=$(acpi | sed 's/,\s*rate information unavailable//')
 
-notify-send $TIME "$DATE\n\n$BATT"
+NET="$(nmcli -t -f NAME con status | sed 's|AUTO \(.*\)$|\1:|i') $(nmcli -t -f STATE nm)"
+
+notify-send $TIME "$DATE\n\n$BATT\n\n$NET"