diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2012-02-28 11:56:26 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2012-02-28 11:56:26 +0100 |
commit | 43fbdd293cb66360eaec43ce77102951895eb1d9 (patch) | |
tree | ead80f9607647935f2c4602c159102d7b03b7081 | |
parent | 949ed46b9cbf17f492ffc68ec1e2bab1e11bd87e (diff) |
[Funcs] uses which instead of whereis, since it gives only one path instead of one-or-more paths..
-rw-r--r-- | 02_Functions.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |