Add check for `pidof'

Added a check for pidof's existence and just create a 'pidof' named
function to mimic `pidof' if doesn't exist.
This commit is contained in:
c47 2024-02-03 09:45:59 +01:00
parent da20795969
commit a0d247f2bf

View file

@ -117,6 +117,12 @@ export VISUAL=${EDITOR}
export VISUDO=${EDITOR}
umask 0077
if [[ ! $(type -P pidof) ]]; then
function pidof() {
ps -e | grep ${1}
}
fi
if [[ -f ${HOME}/.bash_aliases.local ]]; then
source ${HOME}/.bash_aliases.local
fi