diff --git a/.local/bin/SCRIPTS.md b/.local/bin/SCRIPTS.md index 08bca910..1ad320db 100644 --- a/.local/bin/SCRIPTS.md +++ b/.local/bin/SCRIPTS.md @@ -5,7 +5,7 @@ into sub-directories for easy management, and all are seamlessly added to `$PATH` with the command below in `~/.profile`: ``` -export PATH="$(du $HOME/.local/bin/ | cut -f2 | tr '\n' ':')$PATH" +export PATH="$PATH:$(find "$HOME/.local/bin/" -type d | paste -sd:)" ``` ## `statusbar/` diff --git a/.profile b/.profile index 6859fed9..ee9fa001 100644 --- a/.profile +++ b/.profile @@ -2,7 +2,7 @@ # Profile file. Runs on login. # Adds `~/.local/bin/` 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 | paste -sd: )" export EDITOR="nvim" export TERMINAL="st" export BROWSER="firefox"