I want to configure my prompt (PS1) in two lines. At the end of first line I want to fill all the blank space (from end of line to right hand side border of terminal) with a line (like this: _______ )
How can I do that?
currently my prompt is:
export PS1="$(echo "\033[37mroot@\033[34m`hostname`:\033[31m\${PWD}# \033[0m")"
which prints:
root@myhost:/export/home/myid#
I want it to be:
root@myhost:/export/home/myid____________________________________________
#
later on I plan to add more things after PWD.
systems is solaris 10, shell is eksh
5.10 Generic_144488-17 sun4v sparc SUNW
#eksh --version
version sh (AT&T Research) 93t+ 2009-05-01
I have found something here, but it is not working. line_Across_terminal
${PWD}
?