2023-01-20 17:17:55 -08:00
|
|
|
#!/bin/bash
|
|
|
|
module_load system-path
|
|
|
|
|
|
|
|
# if sudo user then give access to these paths
|
|
|
|
if [[ $(groups | grep sudo ) ]]; then
|
|
|
|
export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
|
|
|
|
fi
|
|
|
|
|
|
|
|
# prepend these take prescendence over stuff ones in /usr and /bin
|
|
|
|
# requires system-path module loaded
|
|
|
|
path_prepend /opt/bin
|
|
|
|
path_prepend "$HOME/bin"
|
|
|
|
path_prepend "$HOME/.local/bin"
|