From 2092cee812c60d911f3c0dd57fe2887585b776a8 Mon Sep 17 00:00:00 2001 From: Chexier Date: Sun, 6 Sep 2020 14:48:46 -0300 Subject: [PATCH] Use find instead of du to avoid calling cut Also, add `~/.local/bin` to the start of $PATH --- .zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zprofile b/.zprofile index e7b62f61..a77ddf09 100644 --- a/.zprofile +++ b/.zprofile @@ -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"