Blob
1 .TH LABEL 12 .SH NAME3 label, awd \- set window label4 .SH SYNOPSIS5 .B label6 .I string7 .br8 .B awd9 .SH DESCRIPTION10 .I Label11 sets the label of the current12 .I win13 (see14 .IR acme (1))15 or X terminal window16 .RI ( e.g.,17 .IR 9term (1)18 or19 .IR xterm (1))20 by echoing a special control sequence to standard output.21 .PP22 .I Acme23 and24 .I 9term25 windows assume the label is a directory name.26 When unrooted file names are plumbed in the window,27 they are evaluated relative to the directory named in the label.28 .SH EXAMPLE29 One can use the following30 .IR sh (1)31 function to keep the label up-to-date in response to32 .I cd33 commands:34 .IP35 .EX36 _cd () {37 \ecd "$@" &&38 case $- in39 *i*)40 awd41 esac42 }43 alias cd=_cd44 cd .45 .EE46 .PP47 .IR Rc (1)48 installs a similar49 .B fn50 .B cd51 at startup if there is not already a function named52 .BR cd :53 .IP54 .EX55 fn cd {56 builtin cd $1 && flag i && awd57 }58 .EE59 .SH SOURCE60 .B \*9/bin/label61 .br62 .B \*9/bin/awd63 .SH BUGS64 .I Awd65 is also documented in66 .IR acme (1).67 .PP68 .I Awd69 does not append the70 .BI - label71 suffix that it does on Plan 9.