X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.bashrc;fp=.bashrc;h=0ead09ccdf96e0e156778276389afe739e1d001a;hp=0696bcf2588770b9639edf0b0c4c28d4a7270534;hb=9ad22a15f9e485bec2183a829eb1ed01a448ab49;hpb=5b13b1f0723811e60f70144a61348126b52c7945 diff --git a/.bashrc b/.bashrc index 0696bcf..0ead09c 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