shell-base/load/02-system-path
David Kebler c6dc8e4487 moved reload_user, add editor function, add wheel to groups check
add follow links option to _find
user hostnamectl to get host name
2023-02-23 10:03:47 -08:00

13 lines
No EOL
376 B
Bash

#!/bin/bash
module_load system-path
# if sudo user then give access to these paths
if [[ $(groups | grep -e sudo -e wheel ) ]]; 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"