]> git.wh0rd.org - home.git/blobdiff - .bashrc
ssh_config: switch s390 to ed22519
[home.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index 7293877205e9c411b08ee55a2a4c103f10d075a9..7ae9b50a83ee3943c46d1c675d5b57e474fbf6ff 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -1,15 +1,13 @@
 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
+
+. ~/.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' '
@@ -25,8 +23,9 @@ 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
 [ -r /usr/local/src/blackfin/git/toolchain/distribution/snapshots/bfin-alias ] && . /usr/local/src/blackfin/git/toolchain/distribution/snapshots/bfin-alias
@@ -36,4 +35,4 @@ eval `dircolors 2>/dev/null`
 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
+ulimit -u $(( 500 * $(getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1) ))