Whenever I go inside a directory in Linux, it shows the file path at prompt like:
root@vivek-HP-Pavilion-dv6-Notebook-PC:/var/www/abc/def/
How can I change it to show short names instead?
|
Add the following to
This will produce:
More infos: How to: Change / Setup bash custom prompt (PS1) |
||||
|
|
PS1variable? What would you like your prompt to be instead? – glenn jackman Aug 8 '11 at 17:05\wto\Wtoo. – slhck♦ Aug 8 '11 at 17:25