57 lines
1.3 KiB
Bash
57 lines
1.3 KiB
Bash
bind -qa $home/bin/rc /bin
|
|
bind -qa $home/bin/$cputype /bin
|
|
bind -qa /usr/sdf/bin /bin
|
|
bind -qa $home/lib/font/bit /lib/font/bit # my fonts
|
|
upasname=$user@9p.sdf.org
|
|
|
|
#font=/lib/font/bit/vga/unicode.font
|
|
font=/lib/font/bit/kurinto/kurinto.18.mono.font # font change
|
|
touch $home/lastlogin
|
|
|
|
switch($service){
|
|
case terminal
|
|
webcookies
|
|
webfs
|
|
plumber
|
|
echo -n accelerated > '#m/mousectl'
|
|
echo -n 'res 3' > '#m/mousectl'
|
|
prompt=('term% ' ' ')
|
|
fn term%{ $* }
|
|
upas/fs # let acme do mail
|
|
rio
|
|
case cpu
|
|
bind /mnt/term/dev/cons /dev/cons
|
|
bind -q /mnt/term/dev/consctl /dev/consctl
|
|
>[2] /dev/null {
|
|
cp /dev/sysname /mnt/term/dev/label
|
|
if(wsys=`{cat /mnt/term/env/wsys} && ~ $#wsys 1) {
|
|
wsys=/mnt/term^$wsys
|
|
}
|
|
if not {
|
|
wsys=()
|
|
}
|
|
}
|
|
bind -a /mnt/term/dev /dev
|
|
prompt=('cpu% ' ' ')
|
|
fn cpu%{ $* }
|
|
if(! test -e /mnt/term/dev/wsys){
|
|
# call from drawterm
|
|
if(test -e /mnt/term/dev/secstore){
|
|
auth/factotum -n
|
|
read -m /mnt/term/dev/secstore >/mnt/factotum/ctl
|
|
echo >/mnt/term/dev/secstore
|
|
}
|
|
if not
|
|
auth/factotum
|
|
webcookies
|
|
cat $home/secure/rsa.sec >/mnt/factotum/ctl # load SSH key
|
|
webfs
|
|
plumber
|
|
upas/fs # let acme do mail
|
|
#rio -i riostart
|
|
rio -i riostart-custom # custom rio start script
|
|
}
|
|
case con
|
|
prompt=('cpu% ' ' ')
|
|
}
|