mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Use find instead du for more efficient execution. (#880)
Find is faster and it is only one command. The last `:` is removed by the parameter expansion (works in both Bash and Zsh).
This commit is contained in:
parent
9adf0e6bcd
commit
17f15d91ee
@ -6,7 +6,7 @@
|
|||||||
# to clean up.
|
# to clean up.
|
||||||
|
|
||||||
# Adds `~/.local/bin` to $PATH
|
# Adds `~/.local/bin` to $PATH
|
||||||
export PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | paste -sd ':' -)"
|
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
|
||||||
|
|
||||||
unsetopt PROMPT_SP
|
unsetopt PROMPT_SP
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user