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:
parent
da20795969
commit
a0d247f2bf
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue