summaryrefslogtreecommitdiff
path: root/02_Functions.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2012-02-28 11:56:26 +0100
committerHugues Hiegel <hugues@hiegel.fr>2012-02-28 11:56:26 +0100
commit43fbdd293cb66360eaec43ce77102951895eb1d9 (patch)
treeead80f9607647935f2c4602c159102d7b03b7081 /02_Functions.zsh
parent949ed46b9cbf17f492ffc68ec1e2bab1e11bd87e (diff)
[Funcs] uses which instead of whereis, since it gives only one path instead of one-or-more paths..
Diffstat (limited to '02_Functions.zsh')
-rw-r--r--02_Functions.zsh2
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