From 78dabd1d649145549287a1d45b0462451a2e64b1 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 8 Aug 2014 03:28:57 +0200 Subject: zshrc: Add have() function Courtesy of grawity, bashrc --- zsh/.zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index abac550..2f5c278 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -80,6 +80,8 @@ alias mkdir='mkdir -vp' alias acp='acp -g' alias amv='amv -g' +have() { command -v "$1" >&/dev/null; } + # Colored man man() { env LESS_TERMCAP_mb=$(printf "\e[1;31m") \ -- cgit v1.2.3-70-g09d2