Search Results

Search: Posts Made By: adderek
14,861
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

 

Featured Tech Videos

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