dotfiles/zshrc: adjust local bin path addition

Only add local bin to PATH if it isn't already present.
This commit is contained in:
2025-09-01 11:27:38 +03:00
parent 4993fca001
commit 37e4cdc96c

View File

@@ -25,7 +25,8 @@ compinit
# OS-specific things
if [[ "$OSTYPE" =~ ^linux.*$ ]]; then
PATH=~/.local/bin:$PATH
# Only add local bin if it's not already present
[[ ! $PATH == *.local/bin* ]] && PATH=~/.local/bin:$PATH
{%@@ if profile == "knafeh" or profile == "balozi" @@%}
# Export these variables in our TTY so that Sway can read them when it