]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - shell/rc
*/rc: Move umask code from zsh/rc to shell/rc.
[config/dotfiles.git] / shell / rc
1 # Shell configuration file.
2
3 # Copyright (C) 2013  Simon Ruderich
4 #
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 # Normal umask for root (readable by all users).
20 if test "`id -u`" -eq 0; then
21     umask 022
22 # Restricted umask for normal users (readable only by me).
23 else
24     umask 077
25 fi