mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
use zsh globbing to add ~/.local/bin to $PATH
find is slow, instead use zsh globbing to add '~/.local/bin' to $PPATH as it achieves the same effect but runs faster, plus the substitution that was used in the previous command is actually a bad substitution
This commit is contained in:
parent
185248c4af
commit
42916ef068
@ -5,8 +5,9 @@
|
||||
# If you don't plan on reverting to bash, you can remove the link in ~/.profile
|
||||
# to clean up.
|
||||
|
||||
# Adds `~/.local/bin` to $PATH
|
||||
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
|
||||
# Adds `~/.local/bin` to $PATH recursively
|
||||
typeset -U path
|
||||
path+=(~/.local/bin{,/**/*(N/)})
|
||||
|
||||
unsetopt PROMPT_SP
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user