diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index eb294624..bde28fc4 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -445,6 +445,10 @@ function in_git_directory { [ -d .git ] } +function process_running { + [[ ! -z "$(pgrep $@)" ]] +} + function which_readlink { readlink -f "$(which $1)" }