Add workaround for /sbin series.

This commit is contained in:
Gea-Suan Lin
2023-04-09 13:53:34 +08:00
parent 30c57e1038
commit d4f57fb56f
2 changed files with 18 additions and 0 deletions

View File

@@ -54,6 +54,15 @@ export LSCOLORS="gxfxcxdxbxegedabagacad"
export PYTHONDONTWRITEBYTECODE=yes
export QUILT_PATCHES="debian/patches"
#
if [[ ! "${PATH}" =~ "(^|:)/sbin(:|$)" ]]; then
export PATH="/sbin:${PATH}"
fi
if [[ ! "${PATH}" =~ "(^|:)/usr/sbin(:|$)" ]]; then
export PATH="/usr/sbin:${PATH}"
fi
if [[ ! "${PATH}" =~ "(^|:)/usr/local/sbin(:|$)" ]]; then
export PATH="/usr/local/sbin:${PATH}"
fi
if [[ ! "${PATH}" =~ "(^|:)${HOME}/bin(:|$)" ]]; then
export PATH="${HOME}/bin:${PATH}"
fi