]> Frank Brehm's Git Trees - config/uhu1/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@uhu1.uhu-banane.de>
Fri, 11 Nov 2016 09:36:30 +0000 (10:36 +0100)
committerroot <root@uhu1.uhu-banane.de>
Fri, 11 Nov 2016 09:36:30 +0000 (10:36 +0100)
bash/bashrc

index c948ee8ef13a6ffbf437500136704d7d42b58b20..ff29e3ec27f04ca83fccd9cae62db331d7831fd0 100644 (file)
@@ -20,7 +20,6 @@ fi
 # http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
 shopt -s checkwinsize
 
-# Enable history appending instead of overwriting.  #139609
 # Disable completion when the input buffer is empty.  i.e. Hitting tab
 # and waiting a long time for bash to expand all of $PATH.
 shopt -s no_empty_cmd_completion
@@ -39,7 +38,7 @@ shopt -s histappend
 
 # Change the window title of X terminals 
 case ${TERM} in
-       xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
+       [aEkx]term*|rxvt*|gnome*|konsole*|interix)
                PROMPT_COMMAND='history -a; echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"'
                ;;
        screen*)
@@ -47,16 +46,16 @@ case ${TERM} in
                ;;
        *)
                PROMPT_COMMAND='history -a'
+               unset PS1
                ;;
 esac
 
-use_color=false
-
 # Set colorful PS1 only on colorful terminals.
 # dircolors --print-database uses its own built-in database
 # instead of using /etc/DIR_COLORS.  Try to use the external file
 # first to take advantage of user additions.  Use internal bash
 # globbing instead of external grep binary.
+use_color=false
 safe_term=${TERM//[^[:alnum:]]/?}   # sanitize TERM
 match_lhs=""
 [[ -f ~/.dir_colors   ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"