Put find output in a separate variable

It turned out that it did not work in one go (it complained about not possible substitution). When using separate LOC variable it did work.
This commit is contained in:
ZaxonXP 2021-01-14 13:55:23 +01:00 committed by GitHub
parent 09ba3e53f6
commit 8cc0572958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,10 @@
# to clean up.
# Adds `~/.local/bin` to $PATH
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
LOC=$(find ~/.local/bin -type d -printf %p:)
export PATH="$PATH:${LOC%%:}"
unset LOC
unsetopt PROMPT_SP
# Default programs: