Wednesday, 30 April 2014

AIX - How to Include the Current/Working Directory in your Command Prompt

From this useful site / article: -


...
Another desirable command prompt customization is to display the current directory (also known as the working directory) as part of the prompt. When the cd command is used to change to another directory, the prompt should automatically be updated to reflect the change.
...

In essence, I needed to add: -

export PS1=[${LOGNAME}@$(hostname)]'$PWD>'

to .profile.

Nice :-)

No comments: