X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=.bashrc;h=65333749c73bc0cece546d54c8aecfe757b8868f;hb=HEAD;hp=9d70dcfc2a2c8ad8556521388456455f1c6e83ab;hpb=814eb6428dfeda64326f695be75ab0186202d7da;p=nethome.git diff --git a/.bashrc b/.bashrc index 9d70dcf..82e5139 100644 --- a/.bashrc +++ b/.bashrc @@ -128,8 +128,13 @@ unalias 2>/dev/null fgrep # /etc/profile.d/colorgrep.sh # `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 @@ -209,12 +214,16 @@ export HISTSIZE=10000000 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 @@ -287,14 +296,14 @@ function ctags {(unset ctags -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; );}