1.3 KiB
/etc/profile: system-wide .profile file for the Bourne shell (sh(1))
and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
TERM="xterm-256color"
Set the prompt for bash
PS1='\u@\h:\W$ '
loop profile.d scriptlets
if [ -d /etc/profile.d ]; then for i in /etc/profile.d/*.sh; do if [ -f $i -a -r $i ]; then . $i fi done unset i fi
set locale fallback - all our images contain en_US
if [ -z "$LANG" ]; then LANG="en_US.utf8" export LANG fi
`ls' enhancements:
eval dircolors
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
colorize all grep variants
alias grep='grep --color' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias xzegrep='xzegrep --color=auto' alias xzfgrep='xzfgrep --color=auto' alias xzgrep='xzgrep --color=auto' alias zegrep='zegrep --color=auto' alias zfgrep='zfgrep --color=auto' alias zgrep='zgrep --color=auto'
Turn on parallel history
shopt -s histappend history -a
HOSTNAME=hostname 2>/dev/null
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; then
export HISTCONTROL=ignoreboth
else
export HISTCONTROL=ignoredups
fi
Turn on checkwinsize
shopt -s checkwinsize
export PATH TERM PS1 PROMPT_COMMAND HOSTNAME HISTSIZE
umask 022