git://git.jankratochvil.net
/
nethome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.ssh/config: cosmo8: -User; it is not used by Termux.
[nethome.git]
/
.bashrc
diff --git
a/.bashrc
b/.bashrc
index
c93f47c
..
6533374
100644
(file)
--- 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
export PS1='[bash]${LOGNAME}@MOCK-'"`cat /MOCK`"':${PWD}# '
fi
export PS1='\[\017\]'"$PS1" # \017=std charmap
- if [ "${S
SH_CLIENT#2a02:2b88:6:3b57::8f }" = "$SSH_CLIENT" ];then # !Termux
+ if [ "${S
HELL#*/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
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 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
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
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:
# 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 </dev/null 'BEGIN{ for (i=1;i<ARGC;i++) print " -o -iname *"ARGV[i]"*"; }' "$@"
`; }
function finame { find . -false `
awk </dev/null 'BEGIN{ for (i=1;i<ARGC;i++) print " -o -iname *"ARGV[i]"*"; }' "$@"
`; }
@@
-290,7
+295,7
@@
function ctags {(unset ctags
-o -name "*.py" \
-o -name "*.exp" \
')' \
-o -name "*.py" \
-o -name "*.exp" \
')' \
- |ctags --
file-tags
-L - --langmap=Tcl:+.exp "$@"
+ |ctags --
extras=+f
-L - --langmap=Tcl:+.exp "$@"
fi; );}
function ctagsh { ctags "--c-types=+px"; }
function cpan {(unset cpan; if [ $# = 0 ];then cpan;else perl -MCPAN -e "install qw($*);";fi; );}
fi; );}
function ctagsh { ctags "--c-types=+px"; }
function cpan {(unset cpan; if [ $# = 0 ];then cpan;else perl -MCPAN -e "install qw($*);";fi; );}