aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_zsh/40-functions.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/_zsh/40-functions.zsh b/_zsh/40-functions.zsh
index 46da01c..cd9ebc9 100644
--- a/_zsh/40-functions.zsh
+++ b/_zsh/40-functions.zsh
@@ -4,6 +4,11 @@
# execute 'functions <func_name>' to show function details.
#
+function exists() {
+ which $1 &> /dev/null
+}
+
+
function zsh_recompile() {
autoload -U zrecompile
rm -f ~/.zsh/*.zwc