3 # Sets up the shell for interactive commands
5 # Use the terminfo backspace character as the erase character. This is not
6 # enabled by default because terminfo is often broken.
7 #stty erase $(tput kbs)
9 # The contents of /etc/debian_chroot will be printed in the prompt. You can
10 # create this file in chroot environments to know where you are.
11 if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
12 debian_chroot=$(cat /etc/debian_chroot)
15 # Prompt: user@host:directory$
16 PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
18 # The all important colours!
19 ssource "${HOME}/.bash/colors"
21 # xterm titlebar displays current command
24 HOSTNAME="$(hostname | cut -d '.' -f 1)"
25 CWD_WITHHOME='"$(echo "${PWD}" | sed "s|^${HOME}|~|")"'
26 PROMPT_COMMAND="echo -ne \"\033]0;${HOSTNAME}: ${CWD_WITHHOME}\007\""
30 PROMPT_COMMAND="echo -ne '\033k\033\\'"
37 alias ls='ls --color=auto'
43 alias grep='grep --color=auto'
45 # Bash should check the terminal size after every command terminates
47 # Don't attempt to tab-complete an empty line
48 shopt -s no_empty_cmd_completion
50 # Local customisations
51 ssource "${HOME}/.bash/interactive_local"
53 # Load bash completion if available
54 ssource "/etc/bash_completion"