commit 9b2f709fe01778c1f109be6bdffd13d68dae5aae Author: jlamothe Date: Tue Oct 17 02:14:54 2023 +0000 initial commit diff --git a/profile b/profile new file mode 100644 index 0000000..79488b2 --- /dev/null +++ b/profile @@ -0,0 +1,56 @@ +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% ' ' ') +}