# `eval':
eval '
function grep {(unset grep; ( ulimitme; grep "$@"; ); );}
- function ls {(unset ls; ( ls -bF "$@"; ); );}
- function l { ls -lbF "$@"; }
+ if ls -d -bF / &>/dev/null;then
+ function ls {(unset ls; ( ls -bF "$@"; ); );}
+ else
+ # Alpine Linux
+ function ls {(unset ls; ( ls "$@"; ); );}
+ fi
+ function l { ls -l "$@"; }
if which vim &>/dev/null;then
alias vi="vim"
else
export HISTFILESIZE="$HISTSIZE"
export GDBHISTFILE="$HOME/.gdb_history"
export CVS_RSH="ssh"
-export TZ="Europe/Prague"
-#export TZ="Canada/Eastern"
+export TZ="Asia/Manila"
+#export TZ="Europe/Prague"
+if [ "$TZ" = Asia/Manila ];then
+ alias date='TZ=Asia/Manila date;TZ=Europe/Prague date'
+fi
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
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 </dev/null 'BEGIN{ for (i=1;i<ARGC;i++) print " -o -iname *"ARGV[i]"*"; }' "$@"
`; }
-o -name "*.[chCy]" \
-o -name "*.cc" \
-o -name "*.cxx" \
- -o -name "*.cpp" \
+ -o -name "*.[ch]pp" \
-o -name "*.[Ss]" \
-o -name "*.java" \
-o -name "*.p[lm]" \
-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; );}