summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/.profile9
1 files changed, 5 insertions, 4 deletions
diff --git a/home/.profile b/home/.profile
index 6309b091..2d34ed83 100644
--- a/home/.profile
+++ b/home/.profile
@@ -1,9 +1,10 @@
-_PATH=$PATH
-PATH=
+_PATH=$PATH PATH=
+path() { [ -d "$1" ] && PATH="${PATH}${PATH:+:}${1}"; }
 for prefix in '' /usr/local /usr/pkg /usr /opt/pkg ~/.local; do
-	PATH=${PATH}${PATH:+:}${prefix}/sbin:${prefix}/bin
+	path "${prefix}/sbin"
+	path "${prefix}/bin"
 done
-PATH=$PATH:/usr/games
+path /usr/games
 
 export PAGER=less
 export LESS=FRX
w=1'>Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe 2019-02-17Always split spans after newlinesJune McEnroe 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe