if [ -x /usr/bin/id ]; then
USER='Qid -unQ'
LOGNAME=$USER
MAIL='/var/spool/mail/$USER'
fi
HOSTNAME=Q/bin/hostnameQ
HISTSIZE=1000
if [ -z '$INPUTRC' -a ! -f '$HOME/.inputrc' ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r '$i' ]; then
. $i
fi
done
unset i
unset pathmunge
This script adds
The default
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
You can edit
# Path manipulation
# if [ '$EUID' = '0' ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
# fi
Environment variables are inherited by child processes, so any environment variables set up during the login process are accessible to all shells (and other programs) you start.
This is the default
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User-specific aliases and functions
As you can see, there aren't any alias definitions in there (but you can add them). The file
# System-wide functions and aliases
# Environment stuff goes in /etc/profile
# By default, we want this to get set.
# Even for noninteractive, nonlogin shells.
umask 022
# Are we an interactive shell?
if [ '$PS1' ]; then
case $TERM in
xterm*)
if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm
else
PROMPT_COMMAND='echo -ne ?
' 33]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}';
echo -ne ' 07''
fi
;;
screen)
if [ -e /etc/sysconfig/bash-prompt-screen ]; then
PROMPT_COMMAND=/etc/sysconfig/bash-prompt-screen
else