From 43fbdd293cb66360eaec43ce77102951895eb1d9 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 28 Feb 2012 11:56:26 +0100 Subject: [Funcs] uses which instead of whereis, since it gives only one path instead of one-or-more paths.. --- 02_Functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '02_Functions.zsh') diff --git a/02_Functions.zsh b/02_Functions.zsh index 50d8b4f..78bf7d3 100644 --- a/02_Functions.zsh +++ b/02_Functions.zsh @@ -51,7 +51,7 @@ when() __cmd_exists todo && \ todo() { - TODO=${=$(whereis -b todo | cut -d: -f2)} + TODO=${=$(which -p todo | cut -d: -f2)} if [ $($TODO $@ | wc -l) -gt 0 ] then __preprint "À faire" $color[yellow] && echo -- cgit v1.2.3