]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
remove source_debug()
authorSimon Ruderich <simon@ruderich.org>
Tue, 27 May 2014 12:28:19 +0000 (14:28 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 10 Jun 2014 17:58:19 +0000 (19:58 +0200)
bash/rc
shell/env
shell/functions
zsh/env
zsh/rc

diff --git a/bash/rc b/bash/rc
index 3dfadbbbecff5968a0781b44fb6db1803b31906c..6947057ebab18ea3e1f56ded0bef4e91f0b65045 100644 (file)
--- a/bash/rc
+++ b/bash/rc
@@ -20,8 +20,6 @@
 
 . ~/.shell/functions
 
-source_debug ". ~/.bash/rc"
-
 source_config ~/.shell/env
 
 
@@ -45,6 +43,4 @@ source_config ~/.shell/rc
 
 source_config ~/.bash/rc.local
 
-source_debug ". ~/.bash/rc (done)"
-
 # vim: ft=sh
index fecb6fd609fc3f27d8f882bba6c1457628547998..e1736e3a102cb888d98676c0e2c8150fa3dae1a9 100644 (file)
--- a/shell/env
+++ b/shell/env
@@ -16,9 +16,6 @@
 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
 
 
-source_debug ". ~/.shell/env"
-
-
 # Use UTF-8 encoding in the terminal. Don't use LC_ALL as it's used for
 # debugging purposes. Thanks to twb in #screen on Freenode (2009-10-02 10:25
 # CET).
@@ -113,7 +110,4 @@ LSCOLORS='ExgxxxxxBxxxxxBdBdExEb'
 #         *--------------------- directory
 export LSCOLORS
 
-
-source_debug ". ~/.shell/env (done)"
-
 # vim: ft=sh
index 12874c6228a4f9f1f769729f8610a8d4fda318d8..838968b0b04d3ad2c391b4e66f2afc3ab902d740 100644 (file)
 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
 
 
-# Helper function to print debug information if $DEBUG is not empty.
-#
-# Doesn't fit perfectly in this file, but this is the best place to make it
-# available everywhere.
-source_debug() {
-    if test "x$DEBUG" != x; then
-        printf '%s' "$*"
-    fi
-}
-
 # Source $1 if it exists. And $1.local if it exists as well.
 source_config() {
-    source_debug "source_config(): $1"
-
     if test -f "$1"; then
-        source_debug ". $1"
         . "$1"
     fi
 
     if test -f "$1.local"; then
-        source_debug ". $1.local"
         . "$1.local"
     fi
 }
diff --git a/zsh/env b/zsh/env
index 603c79134041e4e48c26332a85227a19d23cddcc..61ea779134040430e7640203f8894e84eb51227a 100644 (file)
--- a/zsh/env
+++ b/zsh/env
@@ -18,8 +18,6 @@
 
 . ~/.shell/functions
 
-source_debug ". ~/.zsh/env"
-
 source_config ~/.shell/env
 
 
@@ -36,6 +34,4 @@ fi
 
 source_config ~/.zsh/env.local
 
-source_debug ". ~/.zsh/env (done)"
-
 # vim: ft=zsh
diff --git a/zsh/rc b/zsh/rc
index aac4e9a9b193d3a20da65e98273b074f2acb32f6..96b45e4e6b43b0500a4624916a774452a4a852b9 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -16,9 +16,6 @@
 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
 
 
-source_debug '. ~/.zsh/rc'
-
-
 # Warn when creating global variables from inside a function. Needs to be set
 # before declaring a function.
 setopt warn_create_global
@@ -1071,7 +1068,4 @@ zshrc_restart_precmd() {
 }
 precmd_functions+=(zshrc_restart_precmd)
 
-
-source_debug '. ~/.zsh/rc (done)'
-
 # vim: ft=zsh