aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-09-21 02:13:02 +0200
committersrdusr <trevorgray@srdusr.com>2025-09-21 02:13:02 +0200
commit0dc4b9bd273474d91644a3cfcd99924c58a3ac66 (patch)
tree91998c37baff281c006f1f5110e8f86af7408f11
parente1091a6b21b04d053fd635ef9519982a30ba9419 (diff)
downloaddotfiles-0dc4b9bd273474d91644a3cfcd99924c58a3ac66.tar.gz
dotfiles-0dc4b9bd273474d91644a3cfcd99924c58a3ac66.zip
Testing
-rw-r--r--common/.zshrc10
-rw-r--r--linux/home/.config/zsh/.zshrc7
2 files changed, 15 insertions, 2 deletions
diff --git a/common/.zshrc b/common/.zshrc
new file mode 100644
index 0000000..bd22e32
--- /dev/null
+++ b/common/.zshrc
@@ -0,0 +1,10 @@
+# ~/.zshrc
+[[ -f ~/.config/zsh/.zshrc ]] && source ~/.config/zsh/.zshrc
+
+# Point all zsh startup files to ~/.config/zsh
+export ZDOTDIR="$HOME/.config/zsh"
+
+# If you want, you can still source your real zshenv from there:
+if [[ -f "$ZDOTDIR/.zshenv" ]]; then
+ source "$ZDOTDIR/.zshenv"
+fi
diff --git a/linux/home/.config/zsh/.zshrc b/linux/home/.config/zsh/.zshrc
index d86f1e5..480f6f5 100644
--- a/linux/home/.config/zsh/.zshrc
+++ b/linux/home/.config/zsh/.zshrc
@@ -1,4 +1,3 @@
-
# ███████╗███████╗██╗ ██╗██████╗ ██████╗
# ╚══███╔╝██╔════╝██║ ██║██╔══██╗██╔════╝
# ███╔╝ ███████╗███████║██████╔╝██║
@@ -9,8 +8,12 @@
# Profile zsh time
#zmodload zsh/zprof
+
+
# If not running interactively, don't do anything
-[[ $- != *i* ]] && return
+#[[ $- != *i* ]] && return
+# If not running interactively, and not being sourced, don’t do anything
+[[ $- != *i* ]] && [[ "${BASH_SOURCE[0]:-${(%):-%N}}" == "$0" ]] && return
# Terminal key bindings
#stty intr '^q' # Free Ctrl+C for copy use Ctrl+Q instead for Interrupt