I tried this already and it sets me the "HOME DIR" in the prompt. when i change my directory my prompt still shows the "HOMEDIR" as like that and not my current working directory
---------- Post updated at 02:29 AM ---------- Previous update was at 02:25 AM ----------
I doubt my echo $PWD itself dosn't work for me,,,? is there could be any issue with the env variables....? can that be restricted for users..?
if you are using bash on Linux this link comprehensively describes how to customise PS1 etc. using special characters in the prompt string. Not tested by me but it might clear up you issue.
I tried all possiblities adviced,but i still face the issue,, simple echo $PWD itself seems to be not working, I will check with the Admin whether my ID have privilage to use those variables..
In the time can somebody let me know if i can set my our variable as to perform the action of PWD? is ther any possibility for that?
If I recall correctly the Bourne shell does not implement the PWD builtin variable. As a workaround, as already mentioned, you can use a shell function.