2020-11-13 10:25:04 -08:00
|
|
|
#!/bin/bash
|
|
|
|
# if [[ $(groups | grep sudo ) ]]; then
|
|
|
|
# path_insert /sbin after /usr/bin
|
|
|
|
# pathg bin
|
|
|
|
# path_insert /usr/sbin after :/sbin
|
|
|
|
# pathg bin
|
|
|
|
# path_insert /usr/local/sbin after /usr/sbin
|
|
|
|
# pathg sbin
|
|
|
|
# fi
|
|
|
|
|
|
|
|
if [[ $(groups | grep sudo ) ]]; then
|
|
|
|
export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
|
|
|
|
fi
|
|
|
|
|
2021-02-05 13:00:57 -08:00
|
|
|
# with prependthese take prescendence over stuff ones in /usr and /bin
|
|
|
|
path_prepend /opt/bin
|
|
|
|
path_prepend "$HOME/bin"
|
|
|
|
path_prepend "$HOME/.local/bin"
|