From 0dc4b9bd273474d91644a3cfcd99924c58a3ac66 Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 21 Sep 2025 02:13:02 +0200 Subject: Testing --- common/.zshrc | 10 ++++++++++ linux/home/.config/zsh/.zshrc | 7 +++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 common/.zshrc 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 -- cgit v1.2.3