1. Tobias Langhoff
  2. dotfiles

Commits

Tobias Langhoff  committed 79147d0

generaliser oppsett

  • Participants
  • Parent commits 4194ae2
  • Branches default

Comments (0)

Files changed (1)

File .bashrc

View file
  • Ignore whitespace
-source /local/lib/setupfiles/bashrc
+# source /local/lib/setupfiles/bashrc
 unalias -a
 
 # Hva heter kontormaskinen akkurat nĺ?
 HISTSIZE=10000
 HISTCONTROL=ignoredups
 HISTIGNORE='&:d:ls:lm:lm *'
-if [ $HOST != "tivoli-tsh.uio.no" ]; then
+if [[ $HOST != "tivoli-tsh.uio.no" ]]; then
     EDITOR=vim
 fi
 
 
 complete -d cd mkdir rmdir
 
-if [[ $HOST =~ ".ifi.uio.no" ]]; then
+if [[ $(domainname) == "ifi" ]]; then
     PS1='${debian_chroot:+($debian_chroot)}'$DARK_GRAY'\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \$ '
     export PATH=$PATH':/hom/peder/drift/bin/:/hom/peder/bin:/snacks/bin:/hom/termvakt/bin:/local/bin:/local/hacks/bin/printerspy:/snacks/bin:/usr/sbin:/store/sbin/:bin'
     # TERMVAKT:
     alias driftV='xterm -title "Drift" -bg black -fg white  -fn -*-*-*-*-*-*-10-*-*-*-*-*-*-* -geometry 72x45+605+0 -e ~peder/opt/termstue/bin/termstue -d -s 2 -G -stat -l driftmap &'
     alias vbp="ssh -Y nali 'xterm -bg black -fg white -geometry 80x77+1120+0 -fn *-fixed-*-*-*-10-* -e ~peder/bin/loop ~peder/bin/printerstatus -a vilhelm frimann vbfarge '&"
     alias vball='vb c107 c203 c205 c207 c210 tvV driftV vbp'
-elif [[ $HOST =~ ".uio.no" ]]; then
+elif [[ $(domainname) == "ping" ]]; then
+    PS1='${debian_chroot:+($debian_chroot)}'$LIGHT_CYAN'\u@\h\[\033[00m\]:\[\033[0;34m\]\w\[\033[00m\] \$ '
+elif [[ $(domainname) == "uio" ]]; then
     PS1='${debian_chroot:+($debian_chroot)}'$LIGHT_GRAY'\u@\h\[\033[00m\]:\[\033[0;34m\]\w\[\033[00m\] \$ '
     export PATH=$PATH':~/bin/wine-1.1.39:/usr/bin/:/sbin/:/local/sbin:/local/bin:/usr/sbin:/store/sbin/:bin'
     alias ldap='ldapsearch -x -H "ldap://ldap.uio.no/" -b "cn=targets,cn=mail,dc=uio,dc=no" mail=mailadr'
     alias irssi='/usr/bin/irssi'
     export CVS_RSH=ssh
     export CVSROOT=cvs.uio.no:/usit/cvs/cvsroot
+else 
+    echo "Hvor er du?"
 fi
 
 export PYTHONPATH=$PYTHONPATH:~/bin/twill-0.9/twill:~/bin//twill-0.9/