summaryrefslogtreecommitdiffstats
path: root/.config/shell
diff options
context:
space:
mode:
authorZaxonXP <ZaxonXP@users.noreply.github.com>2021-01-13 23:51:40 +0100
committerGitHub <noreply@github.com>2021-01-13 17:51:40 -0500
commit17f15d91ee5c90620af6e0fba55180c8c0c93f45 (patch)
tree3fc1d4f74f10dd98b7f4e852bbeb4248750f8476 /.config/shell
parent9adf0e6bcd933ac73b5c20fc3da9957be137e66e (diff)
downloadeibhear-17f15d91ee5c90620af6e0fba55180c8c0c93f45.tar.gz
eibhear-17f15d91ee5c90620af6e0fba55180c8c0c93f45.tar.zst
eibhear-17f15d91ee5c90620af6e0fba55180c8c0c93f45.zip
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).
Diffstat (limited to '.config/shell')
-rw-r--r--.config/shell/profile2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/shell/profile b/.config/shell/profile
index e720376..06831cb 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -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="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
unsetopt PROMPT_SP