Change du|cut -> find; change tr|sed -> paste.

This commit is contained in:
Greg Chamberlain 2019-07-12 17:33:12 +01:00
parent dcd68dac0d
commit 598824068b
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ into sub-directories for easy management, and all are seamlessly added to
`$PATH` with the command below in `~/.profile`: `$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/` ## `statusbar/`

View File

@ -2,7 +2,7 @@
# Profile file. Runs on login. # Profile file. Runs on login.
# Adds `~/.local/bin/` and all subdirectories to $PATH # 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 EDITOR="nvim"
export TERMINAL="st" export TERMINAL="st"
export BROWSER="firefox" export BROWSER="firefox"