2 # /etc/bash.bashrc: System-wide rc file for interactive bash(1) shells.
5 [ -e /tmp/ConfigDebug.$USER ] && echo " >> /etc/bash.bashrc ..."
9 [ -z "$PROFILEREAD" -a -r /etc/profile ] && source /etc/profile
13 [ -r "/var/lib/$ME/bash.bashrc" ] && source /var/lib/$ME/bash.bashrc
21 set mark-directories on
22 set mark-symlinked-directories on
23 HISTCONTROL=ignoredups
27 ssh -o "StrictHostKeyChecking no" "$@"
30 ssh -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" "$@"
34 prefix="${chroot_name:+($chroot_name)}"
36 && PS1="${prefix}\h:\w \\\$ " \
37 || PS1="${prefix}\u@\h:\w \\\$ "
39 # Enable bash completion, if available
40 [ -z "$BASH_COMPLETION" -a -r /etc/bash_completion ] \
41 && source /etc/bash_completion
42 [ -z "$BASH_COMPLETION" -a -r /opt/local/etc/bash_completion ] \
43 && source /opt/local/etc/bash_completion
45 # If the command-not-found package is installed, use it
46 if [ -x /usr/lib/command-not-found ]; then
47 function command_not_found_handle {
48 # Check because c-n-f could've been removed in the meantime
49 if [ -x /usr/lib/command-not-found ]; then
50 /usr/bin/python /usr/lib/command-not-found -- $1
58 # Common command aliases
59 alias ","="clear && logout"
64 alias "lasth"="last | head -n \`expr \\\$LINES - 2\`"
67 type -p lesspipe >/dev/null 2>&1 && eval `lesspipe`
69 # Enable color support of ls and also add handy aliases
70 if [ "$TERM" != "dumb" ]; then
71 type -p dircolors >/dev/null 2>&1 && eval `dircolors -b`
72 ls --color / >/dev/null 2>&1
75 alias ls="ls --color=auto -F"
77 ls -G / >/dev/null 2>&1
85 # If this is an xterm set the title to user@host:dir
88 PROMPT_COMMAND='printf "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
94 # Source local files, if readable
95 [ -r "/etc/bashrc.local" ] && source /etc/bashrc.local
96 [ -r "/etc/bash.bashrc.local" ] && source /etc/bash.bashrc.local
97 [ -r "/var/lib/$ME/bash.bashrc" ] && source /var/lib/$ME/bash.bashrc