[Shell] Add process_running function
This commit is contained in:
parent
9d4db8563e
commit
ecb77cab2a
@ -445,6 +445,10 @@ function in_git_directory {
|
|||||||
[ -d .git ]
|
[ -d .git ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function process_running {
|
||||||
|
[[ ! -z "$(pgrep $@)" ]]
|
||||||
|
}
|
||||||
|
|
||||||
function which_readlink {
|
function which_readlink {
|
||||||
readlink -f "$(which $1)"
|
readlink -f "$(which $1)"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user