From 1e3188699a5d0759211b884135e10a833205ba76 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 24 Jan 2012 17:18:40 +0100 Subject: -- HUGE CLEANUP -- Phase #1 bis --- 00_Sanity.zsh | 2 +- 02_Functions.zsh | 8 ++++---- 99_Exec.zsh | 4 ++-- 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/^/ /' -- cgit v1.2.3