# ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything
-[ -z "$PS1" ] && return
+case $- in
+ *i*) ;;
+ *) return;;
+esac
# don't put duplicate lines in the history. See bash(1) for more options
# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
# set the prompt
PS1='\w\$ '
+# set variable identifying the chroot you work in (used in the prompt below)
+if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
+ debian_chroot=$(cat /etc/debian_chroot)
+fi
+
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
eval "`dircolors -b`"