unix - Custom PS1 not showing the current working directory -


i have customized primary prompt bash shell unfortunately not showing current working directory can seen below.

[cifsamidala]w# pwd /home/vinod/searchidissue [cifsamidala]w# 

here have customized ps1:

host=`tput bold``hostname``tput sgr0` ps1="[${host}]\w # " 

here shell info reference.

[cifsamidala]w# echo $shell /sbin/sh [cifsamidala]w# echo $0 -sh 

i tried 'pwd' below of no use.

ps1="[${host}]`pwd` # " 

kindly let me know if missing here.

thanks in avance.

regards,

vinod yadav

your shell not bash shell , reason why won't work. ask sysadmin give unrestricted shell.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -