]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: remove more unnecessary quotes
authorSimon Ruderich <simon@ruderich.org>
Sun, 22 Jun 2014 14:41:08 +0000 (16:41 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 22 Jun 2014 14:41:08 +0000 (16:41 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index ee31875774893841211b1b859c56978add6c9e8f..1a8c7994fd4abdee7d25bb6507d03060f7c0137a 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -979,7 +979,7 @@ if [[ $LD_PRELOAD != *libcoloredstderr.so* ]]; then
     # process when starting GNU screen/tmux (see above).
     else
         exec 2>>(while read -r -k -u 0 line; do
-            printf '\e[91m%s\e[0m' "$line"
+            printf '\e[91m%s\e[0m' $line
             print -n $'\0'
         done &)
     fi
@@ -1027,7 +1027,7 @@ zshrc_restart_precmd() {
     fi
 
     local startup
-    strftime -s startup '%Y-%m-%d %H:%M:%S' "$zshrc_startup_time"
+    strftime -s startup '%Y-%m-%d %H:%M:%S' $zshrc_startup_time
 
     echo -n "${fg[magenta]}"
     echo -n "~/.zshrc modified since startup ($startup) ... "
@@ -1049,9 +1049,9 @@ zshrc_restart_precmd() {
     # Don't kill our current session by execing it.
     zsh -i -c 'exit 42'
     if [[ $? -ne 42 ]]; then
-        echo -n "${fg_bold[red]}"
+        echo -n ${fg_bold[red]}
         echo 'failed to start new zsh!'
-        echo -n "${fg_bold[default]}"
+        echo -n ${fg_bold[default]}
         return
     fi