bash: Don't enable extended completion three times.
[matthijs/servers/tika.git] / etc / skel / .bashrc
index 17c7b51a761db3d7d11753f124fe98da911bf1c6..1afd4bc18879d3491beb647e6fd2f92858a0de4a 100644 (file)
@@ -55,11 +55,15 @@ else
 fi
 unset color_prompt force_color_prompt
 
-# If this is an xterm set the title to user@host:dir
+# If this is an xterm or screen set the title to user@host:dir
 case "$TERM" in
 xterm*|rxvt*)
     PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
     ;;
+screen)
+    # Only show the hostname in screen, since there is less space
+    PS1="\[\ek${debian_chroot:+($debian_chroot)}\u@\h:\e\134\]$PS1"
+    ;;
 *)
     ;;
 esac
@@ -89,10 +93,3 @@ fi
 if [ -f ~/.bash_aliases ]; then
     . ~/.bash_aliases
 fi
-
-# enable programmable completion features (you don't need to enable
-# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
-# sources /etc/bash.bashrc).
-if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
-    . /etc/bash_completion
-fi