Add command_exists function
This commit is contained in:
parent
4b8319c7da
commit
1cfb22ac59
5
zsh/functions
Normal file
5
zsh/functions
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function command_exists() {
|
||||||
|
command -v "$1" &> /dev/null;
|
||||||
|
}
|
Loading…
Reference in a new issue