How do i permanently set bash profile??

Hi all,

I don't want to enter below command on solaris every time.
How do i permanently set this command on Solaris.

I know that this operation is a piece of cake on redhat because there is a /etc/rc.local file on it.

But Solaris ????

bash-3.00#export PS1="\e[0;32m\u@\h \w> \e[m"
root@prepaid1 />

enter this command in the users .profile file in the users home directory
in case of root try the .bash_profile, assuming you are using bash,...

1 Like

# touch ~/.bashrc
# vi ~/.bashrc // i added below lines
PS1='\e[0;32m\u@\h \w> \e[m'
export PS1

Thanks