From: Simon Ruderich Date: Tue, 27 May 2014 12:28:19 +0000 (+0200) Subject: remove source_debug() X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=8f24a1138ad378038239e8d0cb9619864f7ca026 remove source_debug() --- diff --git a/bash/rc b/bash/rc index 3dfadbb..6947057 100644 --- 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 diff --git a/shell/env b/shell/env index fecb6fd..e1736e3 100644 --- a/shell/env +++ b/shell/env @@ -16,9 +16,6 @@ # along with this file. If not, see . -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 diff --git a/shell/functions b/shell/functions index 12874c6..838968b 100644 --- a/shell/functions +++ b/shell/functions @@ -16,27 +16,13 @@ # along with this file. If not, see . -# 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 603c791..61ea779 100644 --- 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 aac4e9a..96b45e4 100644 --- a/zsh/rc +++ b/zsh/rc @@ -16,9 +16,6 @@ # along with this file. If not, see . -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