summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-01-24 17:18:40 +0100
committerHugues Hiegel <hugues@hiegel.fr>2012-01-24 17:22:52 +0100
commit1e3188699a5d0759211b884135e10a833205ba76 (patch)
tree587568dbde6387c399a531e1e21618d8815e7dab
parentf8dfa7bf4d674d6b5a2b5c02ef484ac1d228a0e0 (diff)
-- HUGE CLEANUP -- Phase #1 bis
-rw-r--r--00_Sanity.zsh2
-rw-r--r--02_Functions.zsh8
-rw-r--r--99_Exec.zsh4
3 files changed, 7 insertions, 7 deletions
diff --git a/00_Sanity.zsh b/00_Sanity.zsh
index dc63a60..426f637 100644
--- a/00_Sanity.zsh
+++ b/00_Sanity.zsh
@@ -18,5 +18,5 @@ umask 027
[[ -t 0 ]] && /bin/stty erase "^H" intr "^C" susp "^Z" dsusp "^Y" stop "^S" start "^Q" kill "^U" >& /dev/null
# unalias shitty alias
-unalias which
+alias which >/dev/null && unalias which
diff --git a/02_Functions.zsh b/02_Functions.zsh
index 015d277..50d8b4f 100644
--- a/02_Functions.zsh
+++ b/02_Functions.zsh
@@ -41,9 +41,9 @@ when()
if [ -s $TODAY_FILE ]
then
- preprint "À ne pas manquer" $color[red] ; echo
+ __preprint "À ne pas manquer" $color[red] ; echo
cat $TODAY_FILE
- preprint "" $color[red] ; echo
+ __preprint "" $color[red] ; echo
echo
fi | sed 's/^/ /'
}
@@ -54,9 +54,9 @@ todo()
TODO=${=$(whereis -b todo | cut -d: -f2)}
if [ $($TODO $@ | wc -l) -gt 0 ]
then
- preprint "À faire" $color[yellow] && echo
+ __preprint "À faire" $color[yellow] && echo
$TODO $@ --force-colour
- preprint "" $color[yellow] && echo
+ __preprint "" $color[yellow] && echo
echo
fi | sed 's/^/ /'
}
diff --git a/99_Exec.zsh b/99_Exec.zsh
index 2a996a1..6e5cd07 100644
--- a/99_Exec.zsh
+++ b/99_Exec.zsh
@@ -10,9 +10,9 @@
if __cmd_exists fortune
then
- preprint "Pensée du jour" && echo
+ __preprint "Pensée du jour" && echo
fortune fr | fmt -s -w 74
- preprint "" && echo
+ __preprint "" && echo
echo
fi | sed 's/^/ /'