X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=.bashrc;h=65333749c73bc0cece546d54c8aecfe757b8868f;hb=928e1b68bd0581843d27b7f2865a2d0592c12d61;hp=12918b88f6d571ce6b7cb81ed6d6fd60421ccaeb;hpb=0013bb62a5c86161999320ad867f0ef1371acbb3;p=nethome.git diff --git a/.bashrc b/.bashrc index 12918b8..6533374 100644 --- a/.bashrc +++ b/.bashrc @@ -198,7 +198,7 @@ if [ -n "$PS1" ];then # set only in interactive sessions export PS1='[bash]${LOGNAME}@MOCK-'"`cat /MOCK`"':${PWD}# ' fi export PS1='\[\017\]'"$PS1" # \017=std charmap - if [ "${SHELL#*/com.termux/}" = "$SHELL" ];then + if [ "${SHELL#*/com.termux/}" = "$SHELL" -a "${SSH_CLIENT#2a02:2b88:6:3b57::8f }" = "$SSH_CLIENT" ];then export PS1='\[\033%G\]'"$PS1" # \033%G=utf-8 fi # Do not: kbd_mode -u # utf-8 @@ -215,6 +215,7 @@ export PYTHONUNBUFFERED=1 export ASAN_OPTIONS=detect_leaks=0 export GTK_OVERLAY_SCROLLING=0 export MAKEFLAGS= +export DEBUGINFOD_URLS= cpus="`getconf _NPROCESSORS_ONLN`" if [ -n "$cpus" ];then # *3/2 was OOM for host1 32 CPUs + 16GB RAM @@ -258,9 +259,13 @@ export ULIMITME_OPTS="" for i in "-v 2000000";do (ulimit $i 2>/dev/null) && ULIMITME_OPTS="$ULIMITME_OPTS $i" done +if [ -z "$ULIMITME_OPTS" ];then + # MinGW64 would be printing "unlimited" on each ulimitme() execution. + ULIMITME_OPTS="-v unlimited" +fi # Prevent: ulimit: -m 100000 -d 150000 -v 200000: invalid number # by forcing our known $IFS value; eval(1) is needed to take $IFS to effect: -function ulimitme { IFS=" " eval "ulimit $ULIMITME_OPTS"; } +function ulimitme { IFS=" " eval "ulimit 2>/dev/null $ULIMITME_OPTS"; } function finame { find . -false ` awk