~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dot/shell-rc: Only run tmpdir(1) if we actually found it.
[profile]
/
dot
/
shell-rc
diff --git
a/dot/shell-rc
b/dot/shell-rc
index
e990339
..
5c3c336
100644
(file)
--- a/
dot/shell-rc
+++ b/
dot/shell-rc
@@
-324,9
+324,15
@@
pathhack () {
###--------------------------------------------------------------------------
### Finishing touches.
###--------------------------------------------------------------------------
### Finishing touches.
+## Make sure `$HOME/bin' is on the path.
+path_add "$HOME/bin"
+
## Set the temporary directory again. (A setuid or setgid program may have
## unhelpfully forgotten this for us.)
## Set the temporary directory again. (A setuid or setgid program may have
## unhelpfully forgotten this for us.)
-case ${TMPDIR+t} in t) ;; *) eval $(tmpdir -b); esac
+case ${TMPDIR+t} in
+ t) ;;
+ *) if __mdw_programp tmpdir; then eval $(tmpdir -b); fi ;;
+esac
## For `root' use -- some simple molly-guards.
case $(id -u) in
## For `root' use -- some simple molly-guards.
case $(id -u) in