]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - shell/rc
793093a29fd6d3e21a2f9ee18c8198b2408326f9
[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
26
27 # Disable flow control (^s ^q). I use GNU Screen/Tmux which also supports this
28 # in a similar way (entering copy mode) and enabling flow control by accident
29 # is annoying.
30 if test -t 0; then
31     stty -ixon -ixoff
32 fi