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:

Visual Studio Code - Wow 🙀

Why did I not know that I can merely hit [cmd] [p]  to bring up a search box allowing me to search my project e.g. a repo cloned from GitHub...