2010-10-28 01:22:03 +00:00
|
|
|
#!/bin/bash
|
2020-05-05 13:30:15 +00:00
|
|
|
fshell=$(finger $(whoami) | sed -n 's/.*Shell: //p' | sed 1q)
|
|
|
|
SHELL=${fshell:-$SHELL}
|
2010-10-28 01:22:03 +00:00
|
|
|
PLAN9=${PLAN9:-/usr/local/plan9}
|
2020-05-05 13:30:15 +00:00
|
|
|
cd $HOME
|
|
|
|
case "$SHELL" in
|
|
|
|
*/rc)
|
|
|
|
echo '
|
|
|
|
if(! ~ $PLAN9/bin $path)
|
|
|
|
path=($path $PLAN9/bin)
|
|
|
|
$PLAN9/bin/9term -l -W600x800 &
|
|
|
|
' | $SHELL -l
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
*/bash)
|
|
|
|
. ~/.bash_profile
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
. ~/.profile
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2018-11-14 04:59:49 +00:00
|
|
|
if ! [[ :$PATH: =~ :$PLAN9/bin: ]]
|
|
|
|
then
|
|
|
|
PATH=$PATH:$PLAN9/bin
|
|
|
|
fi
|
2018-11-14 05:11:58 +00:00
|
|
|
$PLAN9/bin/9term -l -W600x800 &
|
2020-05-05 13:30:15 +00:00
|
|
|
exit 0
|
|
|
|
|