mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-02-26 21:18:55 +00:00
Use bash compliant syntax for extending PATH
This commit is contained in:
parent
35dceab233
commit
d68284ed85
1 changed files with 3 additions and 4 deletions
|
@ -8,18 +8,17 @@
|
|||
# which means the XDG definitions will be ignored anyway, and
|
||||
# defining them may break programs when root is actually logged in.
|
||||
|
||||
|
||||
# Add all folders in ~/.local/bin into PATH
|
||||
# Some window managers require this line to be in profile not in .zshenv
|
||||
if [ -d "$HOME/.local/bin" ]; then
|
||||
PATH+=":${$(find -L ~/.local/bin -type d | tr '\n' ':')%%:}"
|
||||
PATH+=":$(find -L ~/.local/bin -type d | tr '\n' ':' | sed 's/:$//')"
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.local/share/npm/bin" ]; then
|
||||
PATH+=":$HOME/.local/share/npm/bin"
|
||||
PATH+=":$HOME/.local/share/npm/bin"
|
||||
fi
|
||||
|
||||
# Prepend rye shims to PATH, to have rye python executables
|
||||
# Prepend rye shims to PATH, to have rye python executables
|
||||
# take priority over the system-wide python.
|
||||
if [ -d "${RYE_HOME:-$HOME/.rye}/shims" ]; then
|
||||
PATH="${RYE_HOME:-$HOME/.rye}/shims:$PATH"
|
||||
|
|
Loading…
Add table
Reference in a new issue