summary refs log tree commit diff
path: root/home/.profile
diff options
context:
space:
mode:
Diffstat (limited to '')
-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
2:01:47 +0200'>2014-07-28ui-stats.c: set parent pointer to NULL after freeing itJohn Keeping 2014-07-28git: update to v2.0.3John Keeping 2014-07-28parsing.c: make commit buffer constJohn Keeping 2014-06-30Bump version.Jason A. Donenfeld 2014-06-29remove debug fprinf() calls that sneaked in with commit 79c985Christian Hesse 2014-06-28git: update to 2.0.1Christian Hesse 2014-06-28ui-patch: Flush stdout after outputting dataJohn Keeping 2014-06-28ui-log: ignore unhandled argumentsJohn Keeping 2014-06-28git: update for git 2.0Christian Hesse 2014-04-17remove trailing whitespaces from source filesChristian Hesse 2014-04-12git: update to 1.9.2Christian Hesse 2014-04-05Fix cgit_parse_url when a repo url is contained in another repo urlJulian Maurice 2014-03-20Makefile: use more reliable git tarball mirrorJason A. Donenfeld 2014-03-20git: update to 1.9.1Christian Hesse