From: Simon Ruderich Date: Sat, 18 Sep 2010 22:19:28 +0000 (+0200) Subject: Improve source_debug() output. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=9eb125f460f59b7c1067ae5142fc34393fd99080 Improve source_debug() output. --- diff --git a/bash/logout b/bash/logout index af130c6..90cb162 100644 --- a/bash/logout +++ b/bash/logout @@ -1,11 +1,11 @@ # Bash logout file. -source_debug "sourcing ~/.bash/logout" +source_debug ". ~/.bash/logout" # Load logout file usable by all shells. source_config ~/.shell "" logout -source_debug "finished sourcing ~/.bash/logout" +source_debug ". ~/.bash/logout (done)" # vim: ft=sh diff --git a/bash/rc b/bash/rc index 05317d9..7243ceb 100644 --- a/bash/rc +++ b/bash/rc @@ -19,7 +19,7 @@ else } fi -source_debug "sourcing ~/.bash/rc" +source_debug ". ~/.bash/rc" # Load global env file for current hostname (first part before a dot) or # global env.local. @@ -49,6 +49,6 @@ fi # Load rc file for current hostname (first part before a dot) or rc.local. source_config ~/.bash host rc $host -source_debug "finished sourcing ~/.bash/env" +source_debug ". ~/.bash/rc (done)" # vim: ft=sh diff --git a/shell/env b/shell/env index ba94f39..1b9750f 100644 --- a/shell/env +++ b/shell/env @@ -12,7 +12,7 @@ source_debug() { } -source_debug "sourcing ~/.shell/env" +source_debug ". ~/.shell/env" # Use UTF-8 encoding in the terminal. Don't use LC_ALL as it's used for @@ -157,6 +157,6 @@ source_config() { unset source_file source_file_local } -source_debug "finished sourcing ~/.shell/env" +source_debug ". ~/.shell/env (done)" # vim: ft=sh diff --git a/zsh/env b/zsh/env index cff3f19..aaeb493 100644 --- a/zsh/env +++ b/zsh/env @@ -17,7 +17,7 @@ else } fi -source_debug "sourcing ~/.zsh/env" +source_debug ". ~/.zsh/env" # Make sure elements in PATH are unique. @@ -31,6 +31,6 @@ source_config ~/.shell "" env $host # Load env file for current hostname (first part before a dot) or env.local. source_config ~/.zsh host env $host -source_debug "finished sourcing ~/.zsh/env" +source_debug ". ~/.zsh/env (done)" # vim: ft=zsh diff --git a/zsh/logout b/zsh/logout index 8564cdb..f231a31 100644 --- a/zsh/logout +++ b/zsh/logout @@ -1,11 +1,11 @@ # Zsh logout file. -source_debug "sourcing ~/.zsh/logout" +source_debug ". ~/.zsh/logout" # Load logout file usable by all shells. source_config ~/.shell "" logout -source_debug "finished sourcing ~/.zsh/logout" +source_debug ". ~/.zsh/logout (done)" # vim: ft=zsh diff --git a/zsh/rc b/zsh/rc index 21b65a9..b94e24e 100644 --- a/zsh/rc +++ b/zsh/rc @@ -1,7 +1,7 @@ # Zsh configuration file. -source_debug "sourcing ~/.zsh/rc" +source_debug ". ~/.zsh/rc" # MISCELLANEOUS SETTINGS @@ -638,6 +638,6 @@ if [[ $TERM != dumb && -z $STY ]]; then fi -source_debug "finished sourcing ~/.zsh/rc" +source_debug ". ~/.zsh/rc (done)" # vim: ft=zsh