From c0d07b5dd3b0a94639fabb57835976a95eeb28cb Mon Sep 17 00:00:00 2001 From: Morgan Wattiez Date: Mon, 30 Sep 2019 13:21:18 +0200 Subject: [PATCH] where is a function defined --- dot_zsh_functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dot_zsh_functions b/dot_zsh_functions index b456ac1..419d4e8 100644 --- a/dot_zsh_functions +++ b/dot_zsh_functions @@ -185,3 +185,8 @@ transfer() { # cleanup rm -f $tmpfile } +# Where is a function defined? +function whichfunc() { + whence -v $1 + type -a $1 +}