From a18e798b99564f6ef58dc0023ae228aba0d4c561 Mon Sep 17 00:00:00 2001 From: "J.P. Silva" Date: Fri, 24 May 2019 14:49:35 -0500 Subject: [PATCH] Update .profile One command less. I know you don't like `find` but is faster here. Is posix, although is not part of Plan9. --- .profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.profile b/.profile index dde6b157..250e0bc9 100644 --- a/.profile +++ b/.profile @@ -2,7 +2,7 @@ # Profile file. Runs on login. # Adds `~/.scripts` and all subdirectories to $PATH -export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')" +export PATH="$PATH:$(find "$HOME/.local/bin/" -type d | tr '\n' ':' | sed 's/:*$//')" export EDITOR="nvim" export TERMINAL="st" export BROWSER="firefox"