Update .profile

One command less. I know you don't like `find` but is faster here. Is posix, although is not part of Plan9.
This commit is contained in:
J.P. Silva 2019-05-24 14:49:35 -05:00 committed by GitHub
parent 1f68edef08
commit a18e798b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"