From 1cfb22ac593e458e1f0c318ed6fa182c09ba41d5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 16 Mar 2013 13:32:16 -0400 Subject: [PATCH] Add command_exists function --- zsh/functions | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 zsh/functions diff --git a/zsh/functions b/zsh/functions new file mode 100644 index 00000000..c5ff970e --- /dev/null +++ b/zsh/functions @@ -0,0 +1,5 @@ +#!/bin/bash + +function command_exists() { + command -v "$1" &> /dev/null; +}