]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Consistently use [[ instead of [.
authorSimon Ruderich <simon@ruderich.org>
Thu, 11 Apr 2013 22:30:16 +0000 (00:30 +0200)
committerSimon Ruderich <simon@ruderich.org>
Thu, 11 Apr 2013 22:30:16 +0000 (00:30 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 5889186973ea19dde4a1a92375611f976c478526..97555277906d9c42a119824c819603f7893d5747 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -878,7 +878,7 @@ periodic() {
     # Display fortunes.
     (( $+commands[fortune] )) && fortune -ac
     # Display reminders.
-    (( $+commands[rem] )) && [ -f ~/.reminders ] && rem -h
+    (( $+commands[rem] )) && [[ -f ~/.reminders ]] && rem -h
 }