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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -