I need to add an path to the PATH but only when logging user is root or user1. What is the shostest synhax of such test?
I added the following to my global profile, but how to extend this also for user1 not running again `whoami`?
[ `whoami` = root ] && export PATH=$PATH:/usr/sbin/cluster/utilities || return 0
r. m.
I added the following to my global profile, but how to extend this also for user1 not running again `whoami`?
[ `whoami` = root ] && export PATH=$PATH:/usr/sbin/cluster/utilities || return 0
r. m.