<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,87 +1,111 @@
-# This file is sourced by all *interactive* bash shells on startup,
-# including some apparently interactive shells such as scp and rcp
-# that can't tolerate any output.
-
-# Add bin directories to the path.
-[ -d $HOME/bin ] &amp;&amp; export PATH=$PATH:$HOME/bin
-[ -d /usr/kde/3.5/bin ] &amp;&amp; export PATH=$PATH:/usr/kde/3.5/bin
-[ -d /opt/flex/bin ] &amp;&amp; export PATH=$PATH:/opt/flex/bin
-
-alias xlock=&quot;gnome-screensaver-command --lock&quot;
-alias aterm=&quot;urxvt&quot;
-alias rtorrent='echo -ne &quot;\033]0;rtorrent\007&quot; &amp;&amp; rtorrent'
-alias nds=desmume
-alias ff=firefox
-alias less='less -R'
-
-asgrep(){ find . -name &quot;*.as&quot; | xargs grep -n --colour &quot;$@&quot;; }
-rbgrep(){ find . -name &quot;*.rb&quot; | xargs grep -n --colour &quot;$@&quot;; }
-pygrep(){ find . -name &quot;*.py&quot; | xargs grep -n --colour &quot;$@&quot;; }
-railsgrep(){ 
-	find {app,db,script,config,lib,public,test} -name &quot;*.rb&quot; -or -name &quot;*.erb&quot; -or -name &quot;*.rhtml&quot; -or -name &quot;*.html&quot; -or -name &quot;*.js&quot; | xargs grep -n --colour &quot;$@&quot;;
-}
-danim(){ dosbox -forcescaler normal4x -c 'mount b .' &quot;$HOME/bin/deluxepaint/danim/DPA.EXE&quot; -exit; }
-
-export JAVA_HOME=/usr
-export EDITOR=/usr/bin/vim
+# ~/.bashrc: executed by bash(1) for non-login shells.
+# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
+# for examples
+
+# If not running interactively, don't do anything
+[ -z &quot;$PS1&quot; ] &amp;&amp; return
+
+# don't put duplicate lines in the history. See bash(1) for more options
+# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
+export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
+# ... or force ignoredups and ignorespace
+export HISTCONTROL=ignoreboth
+
+export LC_ALL=C
 export BROWSER=/usr/bin/firefox
-export PAGER=&quot;/usr/bin/less -R&quot;
-export SVNROOT=https://svn
+export EDITOR=/usr/bin/vim
 export DICTIONARY=british
-export OOO_FORCE_DESKTOP=gnome
-export DEVKITPRO=/opt/devkitpro
-export DEVKITARM=$DEVKITPRO/devkitARM
-
-# Test for an interactive shell.  There is no need to set anything
-# past this point for scp and rcp, and it's important to refrain from
-# outputting anything in those cases.
-if [[ $- != *i* ]]; then
-        # Shell is non-interactive.  Be done now
-        return
+export PAGER=&quot;/usr/bin/less -R&quot;
+export OOO_FORCE_DESKTOP=kde
+export SDL_AUDIODRIVER=dsp
+
+# append to the history file, don't overwrite it
+shopt -s histappend
+
+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
+
+# check the window size after each command and, if necessary,
+# update the values of LINES and COLUMNS.
+shopt -s checkwinsize
+
+# make less more friendly for non-text input files, see lesspipe(1)
+[ -x /usr/bin/lesspipe ] &amp;&amp; eval &quot;$(SHELL=/bin/sh lesspipe)&quot;
+
+# set variable identifying the chroot you work in (used in the prompt below)
+if [ -z &quot;$debian_chroot&quot; ] &amp;&amp; [ -r /etc/debian_chroot ]; then
+    debian_chroot=$(cat /etc/debian_chroot)
+fi
+
+# set a fancy prompt (non-color, unless we know we &quot;want&quot; color)
+case &quot;$TERM&quot; in
+    xterm*|rxvt*|screen) color_prompt=yes;;
+esac
+
+# uncomment for a colored prompt, if the terminal has the capability; turned
+# off by default to not distract the user: the focus in a terminal window
+# should be on the output of commands, not on the prompt
+#force_color_prompt=yes
+
+if [ -n &quot;$force_color_prompt&quot; ]; then
+    if [ -x /usr/bin/tput ] &amp;&amp; tput setaf 1 &gt;&amp;/dev/null; then
+	# We have color support; assume it's compliant with Ecma-48
+	# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
+	# a case would tend to support setf rather than setaf.)
+	color_prompt=yes
+    else
+	color_prompt=
+    fi
 fi
 
-# Make the prompt more colourful.
-if ${use_color} ; then
-	if [[ ${EUID} != 0 ]] ; then
-		PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;30m\]$(date +%T) \[\033[00m\]\$ '
-#		PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
-	fi
 
-	alias ls='ls --color=auto'
-	alias dir='ls -lh --color=auto'
+if [ &quot;$color_prompt&quot; = yes ]; then
+    #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+	PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;30m\]$(date +%T) \[\033[00m\]\$ '
 else
-	if [[ ${EUID} == 0 ]] ; then
-		# show root@ when we don't have colors
-		PS1='\u@\h \W \$ '
-	else
-		PS1='\u@\h \w \$ '
-	fi
+    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
 fi
+unset color_prompt force_color_prompt
 
-# Change the window title of X terminals 
-case $TERM in
-        xterm*|rxvt*|Eterm)
-                PROMPT_COMMAND='echo -ne &quot;\033]0;${USER}@${HOSTNAME%%.
-*}:${PWD/$HOME/~}\007&quot;'
-                ;;
-        screen)
-                PROMPT_COMMAND='echo -ne &quot;\033_${USER}@${HOSTNAME%%.*}
-:${PWD/$HOME/~}\033\\&quot;'
-                ;;
+# If this is an xterm set the title to user@host:dir
+case &quot;$TERM&quot; in
+xterm*|rxvt*)
+    PS1=&quot;\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1&quot;
+    ;;
+*)
+    ;;
 esac
 
-gemdoc() {
-	local gemdir=`gem env gemdir`
-	firefox $gemdir/doc/`ls $gemdir/doc/ | grep $1 | sort | tail -1`/rdoc/index.html
-}
+# Alias definitions.
+# You may want to put all your additions into a separate file like
+# ~/.bash_aliases, instead of adding them here directly.
+# See /usr/share/doc/bash-doc/examples in the bash-doc package.
+
+#if [ -f ~/.bash_aliases ]; then
+#    . ~/.bash_aliases
+#fi
+
+# enable color support of ls and also add handy aliases
+if [ -x /usr/bin/dircolors ]; then
+    eval &quot;`dircolors -b`&quot;
+    alias ls='ls --color=auto'
+    alias dir='ls -lh --color=auto'
 
-_gemdocomplete() {
-	COMPREPLY=($(compgen -W '$(ls `gem env gemdir`/doc)' -- ${COMP_WORDS[COMP_CWORD]}))
-	return 0
-}
+    #alias dir='dir --color=auto'
+    #alias vdir='vdir --color=auto'
+
+    #alias grep='grep --color=auto'
+    #alias fgrep='fgrep --color=auto'
+    #alias egrep='egrep --color=auto'
+fi
 
-complete -o default -o nospace -F _gemdocomplete gemdoc
+# some more ls aliases
+#alias ll='ls -l'
+#alias la='ls -A'
+#alias l='ls -CF'
 
+# 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 ]; then
-	. /etc/bash_completion
+    . /etc/bash_completion
 fi</diff>
      <filename>.bashrc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6e9f9a4aab424b0f11d02fc17658eeb6ad04ff23</id>
    </parent>
  </parents>
  <author>
    <name>puyo</name>
    <email>blue.puyo@gmail.com</email>
  </author>
  <url>http://github.com/puyo/config/commit/b11061c3d039f39670e2ad9f33ccc711cbc14e62</url>
  <id>b11061c3d039f39670e2ad9f33ccc711cbc14e62</id>
  <committed-date>2009-02-17T21:30:02-08:00</committed-date>
  <authored-date>2009-02-17T21:30:02-08:00</authored-date>
  <message>.bashrc for wmaker/kubuntu</message>
  <tree>8f2a9da13c5aa46108b84f6e3d6c4dded9f12be0</tree>
  <committer>
    <name>puyo</name>
    <email>blue.puyo@gmail.com</email>
  </committer>
</commit>
