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:

Reminder - installing podman and skopeo on Ubuntu 22.04

This follows on from: - Lest I forget - how to install pip on Ubuntu I had reason to install podman  and skopeo  on an Ubuntu box: - lsb_rel...