* How can I display $PWD on xterm prompt? @ 1997-08-04 4:00 Yon Han Chong 1997-08-05 4:00 ` Harald Finster 1997-08-05 4:00 ` Torsten Hehl 0 siblings, 2 replies; 3+ messages in thread From: Yon Han Chong @ 1997-08-04 4:00 UTC (permalink / raw) How can I display $PWD on xterm prompt? -- ---------------------------------------------------------------------- Yon Han Chong | Flow Control and Prediction Group | Tel: + 44 1234 750 111 ext.5356 Cranfield College of Aeronautics | Fax: + 44 1234 752 149 Cranfield University | E-mail: Y.H.Chong@cranfield.ac.uk United Kingdom | ---------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How can I display $PWD on xterm prompt? 1997-08-04 4:00 How can I display $PWD on xterm prompt? Yon Han Chong @ 1997-08-05 4:00 ` Harald Finster 1997-08-05 4:00 ` Torsten Hehl 1 sibling, 0 replies; 3+ messages in thread From: Harald Finster @ 1997-08-05 4:00 UTC (permalink / raw) To: Yon Han Chong Yon Han Chong wrote: > > How can I display $PWD on xterm prompt? > Hi, if you are working with 'ksh' try something like the following: PS1='${PWD}' to get a prompt like: /usr/users/ave/finster or PS1=`hostname -s`":"'${PWD#${PWD%/*/*}}'"> " ; to get a prompt consisting of hostname and the last two elements of the current path, e.g.: alfred:/ave/finster> All the best Harald -- Dr. Ing. Harald Finster ave Verkehrs- und Informationstechnik GmbH ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How can I display $PWD on xterm prompt? 1997-08-04 4:00 How can I display $PWD on xterm prompt? Yon Han Chong 1997-08-05 4:00 ` Harald Finster @ 1997-08-05 4:00 ` Torsten Hehl 1 sibling, 0 replies; 3+ messages in thread From: Torsten Hehl @ 1997-08-05 4:00 UTC (permalink / raw) To: Yon Han Chong Yon Han Chong wrote: > > How can I display $PWD on xterm prompt? > This is a part of the xterm man page (As usual: RTFM first) setenv CMD_ENV bsd alias cwdcmd '/bin/echo -n "\033]2;${HOST}:$cwd\a\033]1;${HOST}\a"' Put these lines somewhere in your .cshrc (or whatever you might have) file. This shows the host:directory in the title and the host in the icon. Good luck, Torsten Hehl. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-08-05 4:00 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1997-08-04 4:00 How can I display $PWD on xterm prompt? Yon Han Chong 1997-08-05 4:00 ` Harald Finster 1997-08-05 4:00 ` Torsten Hehl
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox