31 #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
32
33 # set variable identifying the chroot you work in (used in the prompt below)
34 if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
35 debian_chroot=$(cat /etc/debian_chroot)
36 fi
37
38 # set a fancy prompt (non-color, unless we know we "want" color)
39
# check the window size after each command and, if necessary,
40 # update the values of LINES and COLUMNS.
shopt -s checkwinsize
41
# If set, the pattern "**" used in a pathname expansion context will
42 # match all files and zero or more directories and subdirectories.
#shopt -s globstar
43
# make less more friendly for non-text input files, see lesspipe(1)
44 #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
45 # set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
46 debian_chroot=$(cat /etc/debian_chroot)
fi
47
# set a fancy prompt (non-color, unless we know we "want" color)
48 case "$TERM" in
xterm-color) color_prompt=yes;;
49 esac
50 # uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
51 should be on the output of commands, not on the prompt
#force_color_prompt=yes
52
if [ -n "$force_color_prompt" ]; then
53 if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
54 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
a case would tend to support setf rather than setaf.)
55 color_prompt=yes
else
56 color_prompt=
fi
57 fi
58 if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
59 else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
".bashrc" 108L, 3360C записано