]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Improve source_config() debug output.
authorSimon Ruderich <simon@ruderich.org>
Mon, 16 Feb 2009 16:11:04 +0000 (17:11 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 16 Feb 2009 16:27:59 +0000 (17:27 +0100)
Adding "->" makes results (sourcing, neither exists) stand out clearly in the
text and so easy visible.

shell/env
tests/source_config.test.out

index c654613b77a9c838b5284aa159cdecd3991a3fdf..595115370245783eb67c48ae970aff3e880bcbf8 100644 (file)
--- a/shell/env
+++ b/shell/env
@@ -106,16 +106,16 @@ function source_config() {
 
     # If the file does exist then source it.
     if [ -f $source_file ]; then
-        source_debug "source_config(): sourcing $source_file"
+        source_debug "source_config(): -> sourcing $source_file"
         source $source_file
 
     # Otherwise load the .local file if it exists and .local files are
     # allowed.
     elif [ -f $source_file_local -a x$5 != xnolocal ]; then
-        source_debug "source_config(): sourcing $source_file_local"
+        source_debug "source_config(): -> sourcing $source_file_local"
         source $source_file_local
     else
-        source_debug "source_config(): neither exists"
+        source_debug "source_config(): -> neither exists"
     fi
 }
 
index 7e1cec7ba51ce0ad9e8af315470e2202bd90123b..3f473a679ade0cbb766e27c6671c19ce940aeb46 100644 (file)
@@ -5,23 +5,23 @@ loaded shell/env.zucker
 
 source_config(): checking if tmp/zsh/os/rc.Darwin exists
 source_config(): checking if tmp/zsh/rc.local exists
-source_config(): sourcing tmp/zsh/os/rc.Darwin
+source_config(): -> sourcing tmp/zsh/os/rc.Darwin
 loaded zsh/os/rc.Darwin
 source_config(): checking if tmp/zsh/host/rc.zucker exists
 source_config(): checking if tmp/zsh/rc.local exists
-source_config(): sourcing tmp/zsh/host/rc.zucker
+source_config(): -> sourcing tmp/zsh/host/rc.zucker
 loaded zsh/host/rc.zucker
 source_config(): checking if tmp/zsh/os/env.Darwin exists
 source_config(): checking if tmp/zsh/env.local exists
-source_config(): neither exists
+source_config(): -> neither exists
 source_config(): checking if tmp/zsh/host/env.zucker exists
 source_config(): checking if tmp/zsh/env.local exists
-source_config(): sourcing tmp/zsh/env.local
+source_config(): -> sourcing tmp/zsh/env.local
 loaded zsh.env.local
 source_config(): checking if tmp/bash/host/rc.zucker exists
 source_config(): checking if tmp/bash/rc.local exists
-source_config(): neither exists
+source_config(): -> neither exists
 source_config(): checking if tmp/shell//env.zucker exists
 source_config(): checking if tmp/shell/env.local exists
-source_config(): sourcing tmp/shell//env.zucker
+source_config(): -> sourcing tmp/shell//env.zucker
 loaded shell/env.zucker