plan9front/usr/glenda/lib/profile

39 lines
1.0 KiB
Bash

bind -a $home/bin/rc /bin
bind -a $home/bin/$cputype /bin
mount -qC /srv/cwfs /n/other other
bind -qc /n/other/dist /dist
bind -qc /n/other/usr/$user/tmp $home/tmp
bind -c $home/tmp /tmp
if(! syscall create /tmp/xxx 1 0666 >[2]/dev/null)
ramfs # in case we're running off a cd
font = /lib/font/bit/pelm/euro.9.font
fn cd { builtin cd $* && awd } # for acme
switch($service){
case terminal
plumber
touch /tmp/webcookies
webfs -c /tmp/webcookies
echo -n accelerated > '#m/mousectl'
echo -n 'res 3' > '#m/mousectl'
prompt=('term% ' ' ')
fn term%{ $* }
exec rio -s -i riostart
case cpu
if (test -e /mnt/term/mnt/wsys) { # rio already running
bind -a /mnt/term/mnt/wsys /dev
if(test -w /dev/label)
echo -n $sysname > /dev/label
}
bind /mnt/term/dev/cons /dev/cons
bind /mnt/term/dev/consctl /dev/consctl
bind -a /mnt/term/dev /dev
prompt=('cpu% ' ' ')
fn cpu%{ $* }
if (! test -e /mnt/term/mnt/wsys) { # cpu call from drawterm
font=/lib/font/bit/pelm/latin1.8.font
exec rio -s
}
case con
prompt=('cpu% ' ' ')
}