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,15 +8,14 @@
|
||||||
# which means the XDG definitions will be ignored anyway, and
|
# which means the XDG definitions will be ignored anyway, and
|
||||||
# defining them may break programs when root is actually logged in.
|
# defining them may break programs when root is actually logged in.
|
||||||
|
|
||||||
|
|
||||||
# Add all folders in ~/.local/bin into PATH
|
# Add all folders in ~/.local/bin into PATH
|
||||||
# Some window managers require this line to be in profile not in .zshenv
|
# Some window managers require this line to be in profile not in .zshenv
|
||||||
if [ -d "$HOME/.local/bin" ]; then
|
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
|
fi
|
||||||
|
|
||||||
if [ -d "$HOME/.local/share/npm/bin" ]; then
|
if [ -d "$HOME/.local/share/npm/bin" ]; then
|
||||||
PATH+=":$HOME/.local/share/npm/bin"
|
PATH+=":$HOME/.local/share/npm/bin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prepend rye shims to PATH, to have rye python executables
|
# Prepend rye shims to PATH, to have rye python executables
|
||||||
|
|
Loading…
Add table
Reference in a new issue