From 793a56b4149f903b7440218ef207c2d8bec3ed56 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 16 Mar 2017 12:14:01 +1300 Subject: [PATCH 1/1] inhibit loading all parts --- .zsh/sourcedir | 3 +++ .zsh/zlogin/01-BREAK_HERE | 0 .zsh/zlogout/01-BREAK_HERE | 0 .zsh/zprofile/01-BREAK_HERE | 0 .zsh/zshenv/01-BREAK_HERE | 0 .zsh/zshrc/01-BREAK_HERE | 0 6 files changed, 3 insertions(+) create mode 100644 .zsh/zlogin/01-BREAK_HERE create mode 100644 .zsh/zlogout/01-BREAK_HERE create mode 100644 .zsh/zprofile/01-BREAK_HERE create mode 100644 .zsh/zshenv/01-BREAK_HERE create mode 100644 .zsh/zshrc/01-BREAK_HERE diff --git a/.zsh/sourcedir b/.zsh/sourcedir index 4226915..46e5f87 100644 --- a/.zsh/sourcedir +++ b/.zsh/sourcedir @@ -19,6 +19,9 @@ sourcedir() { for f in "$1"/*(.N,@N); do case "$f" in *~|*.bak|*.old|*.sw?|*.zwc|*.disabled) continue;; + *-BREAK_HERE) + zinfo "Breaking out of sourcing file in '$1' due to file '${f##*/}'…" + break;; esac # zdebug " sourcing file $f" source "$f" diff --git a/.zsh/zlogin/01-BREAK_HERE b/.zsh/zlogin/01-BREAK_HERE new file mode 100644 index 0000000..e69de29 diff --git a/.zsh/zlogout/01-BREAK_HERE b/.zsh/zlogout/01-BREAK_HERE new file mode 100644 index 0000000..e69de29 diff --git a/.zsh/zprofile/01-BREAK_HERE b/.zsh/zprofile/01-BREAK_HERE new file mode 100644 index 0000000..e69de29 diff --git a/.zsh/zshenv/01-BREAK_HERE b/.zsh/zshenv/01-BREAK_HERE new file mode 100644 index 0000000..e69de29 diff --git a/.zsh/zshrc/01-BREAK_HERE b/.zsh/zshrc/01-BREAK_HERE new file mode 100644 index 0000000..e69de29 -- 2.39.5