Search Results

Search: Posts Made By: adderek
16,323
Posted By agama
Both Kshell and bash expand variables at the time...
Both Kshell and bash expand variables at the time PS1 is written to the tty, and thus using $() the shell can be coaxed into doing what you want:


PS1='$(if [[ $USER == root ]]; then echo...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 09:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy