dotfiles/zshrc: adjust local bin path addition
Only add local bin to PATH if it isn't already present.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user