shithub: misc

Download patch

ref: 437dd078d386f429501f374306dcfdd536d13093
parent: 645405fe147ab4c968bca049030387a9b064d054
author: Philip Silva <philip.silva@protonmail.com>
date: Fri Mar 12 16:48:03 EST 2021

add profile

--- /dev/null
+++ b/profile
@@ -1,0 +1,46 @@
+bind -a $home/bin/rc /bin
+bind -a $home/bin/$cputype /bin
+bind -a $home/env /env
+# bind -a $home/go-plan9-amd64-bootstrap/bin /bin
+bind -a $home/go1.16/bin /bin
+
+# Mouse Settings
+#echo linear > /dev/mousectl
+#echo hwaccel off > /dev/mousectl
+#echo res 0 > /dev/mousectl
+
+if(! syscall create /tmp/xxx 1 0666 >[2]/dev/null)
+	ramfs	# in case we're running off a cd
+#font=/lib/font/bit/vga/unicode.font
+font=/lib/font/bit/dejavusans/unicode.18.font
+switch($service){
+case terminal
+	if(! webcookies >[2]/dev/null)
+		webcookies -f /tmp/webcookies
+	webfs
+	plumber
+	echo -n linear > '#m/mousectl'
+	echo -n hwaccel off > '#m/mousectl'
+	#echo -n 'res 3' > '#m/mousectl'
+	echo -n 'res 0' > '#m/mousectl'
+	aux/realemu
+	aux/vga -l 1280x800x32
+	cat /usr/glenda/lib/ssh/key > /mnt/factotum/ctl
+	ip/ipconfig
+	prompt=('term% ' '	')
+	fn term%{ $* }
+	rio -i riostart
+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=/mnt/term^$wsys
+	} 
+	bind -a /mnt/term/dev /dev
+	prompt=('cpu% ' '	')
+	fn cpu%{ $* }
+case con
+	prompt=('cpu% ' '	')
+}