Quantcast
Channel: A Portal to a Portal
Viewing all articles
Browse latest Browse all 1850

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

$
0
0
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 :-)


Viewing all articles
Browse latest Browse all 1850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>