X-Git-Url: https://git.wh0rd.org/?p=home.git;a=blobdiff_plain;f=.bashrc;h=041297e958ded0de7af67b32f1a383768e52d0a8;hp=7293877205e9c411b08ee55a2a4c103f10d075a9;hb=6ba00e98257c3777c63600b1af5356d5fb73f881;hpb=3290ed022dc39bd89a498b2e9362af6cc6b56117 diff --git a/.bashrc b/.bashrc index 7293877..041297e 100644 --- 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 ~/.local/bin ~/.cargo/bin + +. ~/.profile.d/.post.sh s=$'\001' e=$'\002' export JTAG_PROMPT=$s''$e'jtag'$s''$e'>'$s''$e' ' @@ -18,15 +16,16 @@ unset s e export ECHANGELOG_USER="Mike Frysinger " 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 [ -r /usr/local/src/blackfin/git/toolchain/distribution/snapshots/bfin-alias ] && . /usr/local/src/blackfin/git/toolchain/distribution/snapshots/bfin-alias @@ -36,4 +35,5 @@ 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 +# Chrome creates a shit ton of procs/threads now. +ulimit -u $(( 1000 * $(getconf _NPROCESSORS_CONF 2>/dev/null || echo 1) )) 2>/dev/null