Q:

PS1 variable inheritance between scripts and programs using bash in AIX

How can I ensure that PS1 variable in AIX bash is
inherited between scripts and programs?
I have a script that sets PS1 variable and I want it to be inherited by all programs and scripts.

A:

You can use the export command to set the PS1 variable in a script.
export PS1="\[\033[01;32m