Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/lib/profile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


bind -a $home/rc/bin /bin
bind -a $home/wrk/rc /bin
bind -a $home/386/bin /bin
bind -a $home/$cputype/lib /$cputype/lib
bind -a $home/tmp /tmp
bind -a $home/sys/man /sys/man
bind -a $home/OWN $home/LIB


 if(! syscall open /tmp/xxx 1 >[2]/dev/null)
	ramfs	# in case we're running off a cd
font = /lib/font/bit/pelm/euro.9.font
upas/fs
switch($service){
case terminal
	plumber
	echo -n accelerated > '#m/mousectl'
	echo -n 'res 3' > '#m/mousectl'
	prompt=('term% ' '	')
	fn term%{ $* }
fn cd { builtin cd $*; awd }
aux/vga -l 1024x768x32

echo srv -APW f | con /srv/fscons
9fs f
	exec rio -i riostart
case cpu
	if (test -e /mnt/term/mnt/wsys) { # rio already running
		bind -a /mnt/term/mnt/wsys /dev
		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%{ $* }
	news
	if (! test -e /mnt/term/mnt/wsys) {	# cpu call from drawterm
		font=/lib/font/bit/pelm/latin1.8.font
		exec rio
	}
case con
	prompt=('cpu% ' '	')
	news
}


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.