aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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