]> git.wh0rd.org - home.git/blobdiff - .bashrc
unify default PATH, improve jtag prompt, and up proc limit
[home.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index e97e7472d4c63e3051bf93f65838e824c5feea65..a6569f916bef546d286da8088c2fe447863cc643 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -3,13 +3,20 @@ umask 0022
 for sh in ~/.profile.d/*.sh ; do
        . "$sh"
 done
+unset sh
 
-export PATH=/usr/lib/ccache/bin:/sbin:/usr/sbin:${PATH}:/usr/games/bin
-[ -e ~/.bin ] && export PATH=${PATH}:~/.bin
+for p in /sbin /usr/sbin /usr/games/bin /usr/lib*/ccache /usr/lib*/ccache/*/ ~/.bin ; do
+       case :$PATH: in *:$p:*) continue;; esac
+       [ -d "${p}" ] && PATH=${p}:$PATH
+done
+unset p
+
+s=$'\001' e=$'\002'
+export JTAG_PROMPT=$s'\e[30;1m\e[34;1m'$e'jtag'$s'\e[30;1m'$e'>'$s'\e[0m'$e' '
+unset s e
 
 export ECHANGELOG_USER="Mike Frysinger <vapier@gentoo.org>"
 export GCC_BOUNDS_OPTS=-no-message
-export JTAG_PROMPT='\e[30;1m\e[34;1mjtag\e[30;1m>\e[0m '
 export HISTCONTROL=ignoreboth
 export HISTFILESIZE=10000
 export HISTSIZE=${HISTFILESIZE}
@@ -19,10 +26,13 @@ unset LDPATH # KDE bs
 
 shopt -s checkwinsize
 
-eval `dircolors`
+eval `dircolors 2>/dev/null`
 
 [ -r /usr/local/src/blackfin/bin/bfin-alias ] && . /usr/local/src/blackfin/bin/bfin-alias
 
 # This line was appended by KDE
 # Make sure our customised gtkrc file is loaded.
 export GTK2_RC_FILES="$HOME/.gtkrc-2.0:$HOME/.kde/share/config/gtkrc-2.0:/etc/gtk-2.0/gtkrc"
+
+ulimit -c $(( 512 * 1024 )) # units of KiB
+ulimit -u 600