From 7e832daf77228322b50e8b0384a3e7ae0c29328f Mon Sep 17 00:00:00 2001 From: madumlao Date: Wed, 23 Dec 2020 23:52:20 +0800 Subject: [PATCH] Force enable sbin paths in environments that dont turn them on --- skel/.profile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skel/.profile b/skel/.profile index e81b7f3..61d89c1 100644 --- a/skel/.profile +++ b/skel/.profile @@ -32,6 +32,9 @@ export PAGER="less -r -i" [ -f "$HOME/.profile-private" ] && source "$HOME/.profile-private" # end preferences - switched controls below +# force enable sbin paths in environments that dont turn them on +echo "$PATH" | egrep -q ':?/usr/sbin:?' || export PATH="$PATH:/usr/sbin" +echo "$PATH" | egrep -q ':?/sbin:?' || export PATH="$PATH:/sbin" # gtk options # enable "command pallete"