X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.bashrc;h=82e5139ca2f32876f19f6aeed01e8c87691b991e;hp=0696bcf2588770b9639edf0b0c4c28d4a7270534;hb=HEAD;hpb=a93056d2bce29350abe7315e8dbb988b56a3130f diff --git a/.bashrc b/.bashrc index 0696bcf..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 @@ -211,7 +216,9 @@ export GDBHISTFILE="$HOME/.gdb_history" export CVS_RSH="ssh" export TZ="Asia/Manila" #export TZ="Europe/Prague" -#export TZ="Canada/Eastern" +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