Hi! Is there a way to switch off the display of the working directory in a shell prompt? My dir structure has lotsa sub-dirs and after a while one line is completely occupied by the dir prompt only... Thanks HG
* Hans-Georg Lerdo (hg@lerdo.de) [030424 10:58]:
Is there a way to switch off the display of the working directory in a shell prompt?
Sure, export PS1='$ ' if you want to be really traditional. See bash(1) for more on setting the PS* variables. -- -ckm
On Thursday 24 April 2003 19:18, Christopher Mahmood poked randomly at a keyboard and came up with:
* Hans-Georg Lerdo (hg@lerdo.de) [030424 10:58]:
Is there a way to switch off the display of the working directory in a shell prompt?
Sure, export PS1='$ ' if you want to be really traditional. See bash(1) for more on setting the PS* variables.
Indeed, one which I tend to favour is ... export PS1="\[\e]0;\w\a\]$ " which gives the traditional "$ " prompt, but with the working directory in the window title. Of course, it's not much good in a text-only mode... -- ___ _ __ Public Key @ www.eon.demon.co.uk/keane.asc / __| ___ __ _ _ _ | |/ /___ __ _ _ _ ___ \__ \/ -_) _` | ' \ | ' </ -_) _` | ' \/ -_) |___/\___\__,_|_||_| |_|\_\___\__,_|_||_\___|
On Thursday 24 April 2003 14:39, Sean Keane wrote:
On Thursday 24 April 2003 19:18, Christopher Mahmood poked randomly at a keyboard and came up with:
export PS1='$ '
Indeed, one which I tend to favour is ...
export PS1="\[\e]0;\w\a\]$ "
which gives the traditional "$ " prompt, but with the working directory in the window title. Of course, it's not much good in a text-only mode...
Works like a charm!!! Thanks!!!!!! L8r HG
participants (3)
-
Christopher Mahmood
-
Hans-Georg Lerdo
-
Sean Keane