PageRenderTime 68ms CodeModel.GetById 66ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/profile

http://github.com/brinkman83/bashrc
#! | 28 lines | 25 code | 3 blank | 0 comment | 0 complexity | b59ea6ac3a1ad8c0527ec94f73bafca0 MD5 | raw file
 1# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
 2# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
 3
 4if [ -d /etc/profile.d ]; then
 5  for i in /etc/profile.d/*.sh; do
 6    if [ -r $i ]; then
 7      . $i
 8    fi
 9  done
10  unset i
11fi
12
13if [ "$PS1" ]; then
14  if [ "$BASH" ]; then
15    PS1='\u@\h:\w\$ '
16    if [ -f /etc/bash.bashrc ]; then
17	. /etc/bash.bashrc
18    fi
19  else
20    if [ "`id -u`" -eq 0 ]; then
21      PS1='# '
22    else
23      PS1='$ '
24    fi
25  fi
26fi
27
28umask 022