shithub: misc

ref: e4ef7a58376951b392786e9a7cc38e32b7d9cdc6
dir: /profile/

View raw version
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% ' '	')
}