From b70d5b3ee4cda01646406d4d1fe149dc3d41b308 Mon Sep 17 00:00:00 2001 From: memdmp Date: Fri, 3 Jan 2025 04:02:33 +0100 Subject: fix: allow setting _ZUWU_DEBUG for debugging init --- zuwu.zsh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zuwu.zsh') diff --git a/zuwu.zsh b/zuwu.zsh index cacfd5a..d808028 100755 --- a/zuwu.zsh +++ b/zuwu.zsh @@ -3,6 +3,8 @@ export _ZUWU_INSTALLED=1; +if [[ "$_ZUWU_DEBUG" == "1" ]]; then set -ax; fi + # Completion Handling if ! grep '# The following lines were added by compinstall' ~/.zshrc >/dev/null 2>/dev/null && ! grep 'compinit' ~/.zshrc; then <> ~/.zshrc @@ -202,3 +204,5 @@ fi if [[ "$SAVEHIST" == "30" ]]; then SAVEHIST="10000" fi + +if [[ "$_ZUWU_DEBUG" == "1" ]]; then set +ax; fi -- cgit v1.2.3