GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LABEL(1) FreeBSD General Commands Manual LABEL(1)

label, awd - set window label

label string
awd [ sysname ]

Label sets the label of the current win (see or X terminal window (e.g., or by echoing a special control sequence to standard output.

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.

One can use the following function to keep the label up-to-date in response to cd commands:
_cd () {
	\cd "$@" &&
	case $- in
	*i*)
		awd
	esac
}
alias cd=_cd
cd .
    

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=''
	}
}
    

/bin/label
/bin/awd

Awd is also documented in

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.