9term (450B)
1 #!/bin/bash 2 fshell=$(finger $(whoami) | sed -n 's/.*Shell: //p' | sed 1q) 3 SHELL=${fshell:-$SHELL} 4 PLAN9=${PLAN9:-/usr/local/plan9} 5 cd $HOME 6 case "$SHELL" in 7 */rc) 8 echo ' 9 if(! ~ $PLAN9/bin $path) 10 path=($path $PLAN9/bin) 11 $PLAN9/bin/9term -l -W600x800 & 12 ' | $SHELL -l 13 exit 0 14 ;; 15 */bash) 16 . ~/.bash_profile 17 ;; 18 *) 19 . ~/.profile 20 ;; 21 esac 22 23 if ! [[ :$PATH: =~ :$PLAN9/bin: ]] 24 then 25 PATH=$PATH:$PLAN9/bin 26 fi 27 $PLAN9/bin/9term -l -W600x800 & 28 exit 0 29