Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37710174
en ru br
ALT Linux repos
S:4.4.23-alt1

Group :: Shells
RPM: bash4

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# /etc/bashrc: executed by ~/.bashrc for non-login shells.

# Are we an interactive shell?
if [ -z "${-##*i*}" ]; then
# Set PS1 if not yet.
if [ "$PS1" = '\s-\v\$ ' ]; then
PS1='[\u@\h \W]\$ '
fi

# Set funcy prompt_command if unset.
if [ "${PROMPT_COMMAND-PROMPT_COMMAND}" = PROMPT_COMMAND ]; then
case "$TERM" in
*xterm*|*rxvt*|*Eterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}: ${PWD/#$HOME\//~/}\007"'
;;
esac
fi

# Source optional scripts.
for f in /etc/bashrc.d/*.sh; do
if [ -r "$f" ]; then
. "$f"
fi
done
unset f

if [ -n "$BASH" -a -n "$BASH_VERSION" ]; then
# Notify of job termination immediately.
set -b
fi
fi
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin