From af6cac0a4614d0cd25639c28b289469b862d35ef Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 11 Dec 2025 04:50:07 +0000 Subject: [PATCH 1/2] chore(deps): update submodules/dotfiles digest to c304e65 --- submodules/dotfiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/dotfiles b/submodules/dotfiles index 90d97aa..c304e65 160000 --- a/submodules/dotfiles +++ b/submodules/dotfiles @@ -1 +1 @@ -Subproject commit 90d97aae7e958d493837f1a6a5ab54ecca44a6cb +Subproject commit c304e657e5090439f719295c3f003bad1f2e6e92 From 3123a07c499a9d0eb4ae02c6fb5bca2dd2ea2b81 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Thu, 11 Dec 2025 04:50:20 +0000 Subject: [PATCH 2/2] Update files based on submodule changes --- CHANGELOG.md | 6 ++++++ includes/zshrc-files/zshrc-linux.zsh | 17 ++++++++++------- includes/zshrc-files/zshrc-macos.zsh | 20 ++++++++++++++------ 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0d7725..7a9baa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ Entries under the **Removed** section indicate items removed from the entire doc ## Unreleased +## 2025-12-11 + +### Changed + +- changed(zshrc): refactor PATH and implement removal of dups in PATH + ## 2025-09-30 ### Changed diff --git a/includes/zshrc-files/zshrc-linux.zsh b/includes/zshrc-files/zshrc-linux.zsh index 954c2e5..f81abe0 100644 --- a/includes/zshrc-files/zshrc-linux.zsh +++ b/includes/zshrc-files/zshrc-linux.zsh @@ -187,15 +187,18 @@ Ctrl + O - Allows you to copy what you are currently typing, via 'Ctrl' + 'O'.'" # 1Password auth socket. export SSH_AUTH_SOCK="$HOME/.1password/agent.sock" +orig_path="$PATH" ## Path purpose: -## - $HOME/.local/bin:User installed binaries. -## - $HOME/.dotnet/tools: .NET Core tools. -## - $HOME/.local/share/gem/ruby/3.3.0/bin: Ruby gems. +## - $HOME/.local/bin: Local binaries installed by the user. +## - $HOME/.dotnet/tools: Local .NET Core tools. ## - /opt/nvim/bin: Neovim binary. -export PATH="$HOME/.local/bin:$PATH" -[[ -d $HOME/.dotnet/tools ]] && export PATH="$HOME/.dotnet/tools:$PATH" -[[ -d $HOME/.local/share/gem/ruby/3.3.0/bin ]] && export PATH="$HOME/.local/share/gem/ruby/3.3.0/bin:$PATH" -[[ -d /opt/nvim/bin ]] && export PATH="/opt/nvim/bin:$PATH" +new_path="$HOME/.local/bin" +[[ -d /opt/nvim/bin ]] && new_path="$new_path:/opt/nvim/bin" +[[ -d $HOME/.dotnet/tools ]] && new_path="$new_path:$HOME/.dotnet/tools" +PATH="$new_path:$orig_path" +typeset -U path # Ensure all dirs in PATH are unique, preserving the first occurrence. +export PATH +unset orig_path new_path # Modifies the colors of files and directories in the terminal. export LS_COLORS="di=34:ln=36:so=35:pi=1;33:ex=32:bd=34;46:cd=1;33;40:su=30;41:sg=30;46:tw=30;42:ow=30;1;43" diff --git a/includes/zshrc-files/zshrc-macos.zsh b/includes/zshrc-files/zshrc-macos.zsh index 2eca876..1fc59d9 100644 --- a/includes/zshrc-files/zshrc-macos.zsh +++ b/includes/zshrc-files/zshrc-macos.zsh @@ -161,12 +161,20 @@ Ctrl + O - Allows you to copy what you are currently typing, via 'Ctrl' + 'O'.'" export SSH_AUTH_SOCK="$HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" hb_prefix="$(brew --prefix 2>/dev/null || echo "/opt/homebrew")" -# Path purpose: -# - $hb_prefix/opt/trash-cli/bin: Homebrew installed trash-cli binary. -# - $HOME/.local/bin: User installed binaries. -# - $HOME/.cargo/bin: Rust installed binaries. -export PATH="$hb_prefix/opt/trash-cli/bin:$HOME/.local/bin:$HOME/.cargo/bin:$PATH" -unset hb_prefix +orig_path="$PATH" +## Path purpose: +## - $HOME/.local/bin: User installed binaries. +## - $HOME/.cargo/bin: Rust installed binaries. +## - $hb_prefix/bin: Homebrew installed user binaries. +## - $hb_prefix/sbin: Homebrew installed system binaries. +## - $hb_prefix/opt/trash-cli/bin: Homebrew installed trash-cli binary. +new_path="$HOME/.local/bin:$HOME/.cargo/bin" +new_path="$new_path:$hb_prefix/bin:$hb_prefix/sbin" +new_path="$new_path:$hb_prefix/opt/trash-cli/bin" +PATH="$new_path:$orig_path" +typeset -U path # Ensure all dirs in PATH are unique, preserving the first occurrence. +export PATH +unset hb_prefix orig_path new_path # Modifies the colors of files and directories when using `ls`. export LSCOLORS="exgxfxDxcxegDaabagacaD"