X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=.bashrc;h=0a781308b3c304f5c7de22f4d5c14e37c8ebbc3c;hb=HEAD;hp=65333749c73bc0cece546d54c8aecfe757b8868f;hpb=1fa3126ba01302b1b268ab2e4db8c7d3359153ec;p=nethome.git diff --git a/.bashrc b/.bashrc index 6533374..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,8 +214,11 @@ 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 @@ -288,7 +296,7 @@ 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]" \