mirror of
https://github.com/cole-maxwell1/dotfiles.git
synced 2026-10-27 16:32:49 -05:00
fix(shell): add scripts directory to PATH
Check for the scripts directory within PATH instead of comparing PATH against itself, which prevented the directory from being appended.
This commit is contained in:
@@ -25,7 +25,7 @@ if [[ ":$PATH:" != *":$HOME/.local/bin:"* ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Add script binaries to $PATH if they exist
|
# Add script binaries to $PATH if they exist
|
||||||
if [[ -d $HOME/.scripts && ":$PATH:" != *":$PATH:"* ]]; then
|
if [[ -d $HOME/.scripts && ":$PATH:" != *":$HOME/.scripts:"* ]]; then
|
||||||
export PATH=$PATH:$HOME/.scripts
|
export PATH=$PATH:$HOME/.scripts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user