Originally posted by: SystemAdmin
Hi,
I'm try to find the way to remove the $HOME directory from $PWD command.
Actually I have this set in .profile
export PS1='$USER@$HOSTNAME:${PWD}>'
For some users, the home directory very long (more than 20 chars). developers are asking me how we can have the working directory, but without the HOME path.
Example:
<hr />
[
appc49@oas23/fslnxc49/applmgr/gpsogc49>echo $HOME
/fslnxc49/applmgr/gpsogc49/
appc49@oas23/fslnxc49/applmgr/gpsogc49>echo $PS1
$USER@oas23$PWD>
appc49@oas23/fslnxc49/applmgr/gpsogc49>
appc49@oas23/fslnxc49/applmgr/gpsogc49/appl/admin/gpsogp14_806_BALANCE>
<hr />
They want this
appc49@oas23appl/admin/gpsogp14_806_BALANCE>
Any idea?
Mike