]> git.pld-linux.org Git - projects/setup.git/blob - etc/profile.d/tmp-dir.csh
- don't set TMPDIR to ~/tmp if it doesn't exist
[projects/setup.git] / etc / profile.d / tmp-dir.csh
1 # create ~/tmp for normal users
2 if ( `/bin/id -u` >= 1000 && ! -d ~/tmp ) then
3         mkdir -p ~/tmp >& /dev/null
4         chmod -f og-rwx ~/tmp >& /dev/null
5 endif
6
7 # if any user has ~/tmp then use it
8 if ( -d ~/tmp ) then
9         setenv TMPDIR ~/tmp
10 endif
This page took 0.034573 seconds and 3 git commands to generate.