LABEL(1)
π¦ LABEL(1) π¦
Okay bestie, welcome to LABEL(1) from the General Commands Manual β yes, we're doing window labels and it's lowkey iconic. π
β¨ NAME β¨
label,awdβ set window label π
π SYNOPSIS π
label string
awd [ sysname ]
π DESCRIPTION π
Label sets the label of the current win (see acme(1)) or X terminal window (e.g., 9term(1) or xterm(1)) by echoing a special control sequence to standard output. That's the whole trick, no cap. β¨
Acme and 9term windows assume the label is a directory name. When unrooted file names are plumbed in the window, they are evaluated relative to the directory named in the label. π¦
The label may have a suffix /-sysname, which is not interpreted as part of the directory during plumbing. Awd sets the window name to the current directory with a /-sysname suffix, using the name of the current system by default. π«
πΈ EXAMPLE πΈ
Here's a sh(1) function you can use to keep the label up-to-date in response to cd commands, bestie:
_cd () {
\cd "$@" &&
case $- in
*i*)
awd
esac
}
alias cd=_cd
cd .
And Rc(1) installs a similar fn cd at startup if there is not already a function named cd:
fn cd {
if(builtin cd $1){
if(flag i) $PLAN9/bin/9 awd || status=''
status=''
}
}
β SOURCE β
/bin/label/bin/awd
π BUGS π
Awd is also documented in acme(1). That's the whole bug note, bestie. π
That's the whole label situation! This page is from the General Commands Manual, and the footer is just LABEL(1) β no separate source/version/date line beyond that, so consider this your cute sign-off. π«Άπ
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms