summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zlogin12
-rw-r--r--20_Variables.zsh2
2 files changed, 7 insertions, 7 deletions
diff --git a/.zlogin b/.zlogin
index a551157..7a6934a 100644
--- a/.zlogin
+++ b/.zlogin
@@ -1,12 +1,12 @@
-[ which calendar ] && \
-for i in {1..$COLUMNS} ; do echo -n "_" ; done \
-echo \
-calendar -A0 | sed "s/^\(......\*.*\)/\1/" \
-for i in {1..$COLUMNS} ; do echo -n "_" ; done \
+which calendar 2>&1 >/dev/null && \
+for i in {1..$COLUMNS} ; do echo -n "_" ; done &&\
+echo &&\
+calendar -A0 | sed "s/^\(......\*.*\)/\1/" &&\
+for i in {1..$COLUMNS} ; do echo -n "_" ; done &&\
echo ""
[ -f $ZDOTDIR/.keychain ] && source $ZDOTDIR/.keychain
-[ which keychain ] && keychain --quiet --stop others --inherit any
+which keychain 2>&1 >/dev/null && keychain --quiet --stop others --inherit any
#keychain --quiet --quick id_dsa
#keychain --quiet --quick 593F1F92
diff --git a/20_Variables.zsh b/20_Variables.zsh
index 881285b..dc6266a 100644
--- a/20_Variables.zsh
+++ b/20_Variables.zsh
@@ -22,7 +22,7 @@ export PAGER=less
## Quelle commande utiliser par défaut ?
export NULLCMD=cat
-[ `which dircolors` ] && eval $(dircolors ~/.dir_colors 2>&-)
+which dircolors 2>&1 >/dev/null && eval $(dircolors ~/.dir_colors 2>&-)
export TZ="Europe/Paris"
export TIME_STYLE="+%Y-%b-%d %H:%M"