]> git.wh0rd.org - home.git/blobdiff - .bashrc
cros-board: update
[home.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index a6569f916bef546d286da8088c2fe447863cc643..2d6506f44b16acf8dc1d470ccfa0d89603e7905d 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -1,38 +1,35 @@
 umask 0022
 
-for sh in ~/.profile.d/*.sh ; do
+for sh in ~/.profile.d/{.pre,*}.sh ; do
        . "$sh"
 done
 unset sh
 
-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
+path_prepend /sbin /usr/sbin /usr/games/bin /usr/lib*/ccache /usr/lib*/ccache/*/ ~/.bin ~/.local/bin ~/.cargo/bin
+
+. ~/.profile.d/.post.sh
 
-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
+#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 ECHANGELOG_USER="Mike Frysinger <vapier@gentoo.org>"
+#export GCC_BOUNDS_OPTS=-no-message
 export HISTCONTROL=ignoreboth
-export HISTFILESIZE=10000
+export HISTFILESIZE=30000
 export HISTSIZE=${HISTFILESIZE}
 export LESS="-R --tabs=4 -M -#10"
 export LESSCOLOR=0
 unset LDPATH # KDE bs
 
 shopt -s checkwinsize
+shopt -s no_empty_cmd_completion
 
-eval `dircolors 2>/dev/null`
+[ "${LS_COLORS:+set}" = "set" ] || 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"
+[ -r /usr/local/src/blackfin/git/toolchain/distribution/snapshots/bfin-alias ] && . /usr/local/src/blackfin/git/toolchain/distribution/snapshots/bfin-alias
 
 ulimit -c $(( 512 * 1024 )) # units of KiB
-ulimit -u 600
+# Chrome creates a shit ton of procs/threads now.
+ulimit -u $(( 1000 * $(getconf _NPROCESSORS_CONF 2>/dev/null || echo 1) )) 2>/dev/null