rfs trixie
Edit B <echo /n/pi[1-7] /n/remote
Edit X!/n/[^/]+/$! >echo -n 'Edit ' | 9p write acme/$winid/tag
# Edit X!/n/[^/]+/$! >rfs `{dircpu} &
# Edit X!/n/[^/]+/$! >diskutil unmount force $%
win dns-sd -B _workstation
Edit X!Errors! D
Edit X!/n/[^/]+/$! >ssh -fNMT `{dircpu} &
Edit X!/n/[^/]+/$! >ssh -O check `{dircpu} &
Edit X!/n/[^/]+/$! >r uptime &
Edit X!/n/[^/]+/$! >r cat /sys/firmware/devicetree/base/model &
Edit X!/n/[^/]+/$! >r vcgencmd get_config total_mem &
Edit X!/n/[^/]+/$! >r ip addr show dev wlan0 &
Edit X!/n/[^/]+/$! >r df -h / &
Edit X!Errors! >r sudo apt update &
Edit X!Errors! ,g/All packages are up to date./ D
Edit X!Errors! >r sudo apt upgrade -y &
# Edit X!Errors! >r sudo reboot &
Edit X!/n/[^/]+/$! >r uname -a &
Edit X!Errors! 1g/aarch64/ D
Edit X!Errors! 1v/armv6l/ D
# Edit B <echo /n/*/boot/firmware/cmdline.txt
for $home/lib/plumbing:
╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍ ✃ ╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍
# remote absolute path dir names go to editor
type is text
data matches '(/[.a-zA-Z¡-0-9_/+\-]*[a-zA-Z¡-0-9_/+\!\-])'
wdir matches '(.*/n/[^/]+)(/.*)?'
arg isdir $1/$data
data set $dir
plumb to edit
plumb client $editor
# remote absolute path file names, possibly tagged by line number, go to editor
type is text
wdir matches '(.*/n/[^/]+)(/.*)?'
data matches '(/[.a-zA-Z¡-0-9_/+\-]*[a-zA-Z¡-0-9_/+\!\-])('$addr')?'
attr add addr=$3
data set $1
wdir matches '(.*/n/[^/]+)(/.*)?'
arg isfile $1/$data
data set $file
plumb to edit
plumb client $editor
# NOTE: the effect of 'data set' and 'attr add' of a partially matched rule (above) persists through the rest of the rules!
#
# From the plumb(7) manpage:
# "Such rewritings are permanent, so rules that specify them should
# be placed after all pattern-matching rules in the rule set."
#
# yrk: I haven't found a way to avoid that, as I need to capture
# context from both 'data matches' and 'wdir matches' for the 'arg isfile' there.
╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍ ✃ ╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍
|