Use find instead of du to avoid calling cut

Also, add `~/.local/bin` to the start of $PATH
This commit is contained in:
Chexier 2020-09-06 14:48:46 -03:00
parent e928b366fe
commit 2092cee812
No known key found for this signature in database
GPG Key ID: 0AD2FF0D60999D37

View File

@ -6,7 +6,7 @@
# to clean up.
# Adds `~/.local/bin` to $PATH
export PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | paste -sd ':')"
export PATH="$(find "$HOME/.local/bin" -type d | paste -sd ':'):$PATH"
# Default programs:
export EDITOR="nvim"