git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b13b1f
)
.bashrc: +compatibility with Alpine Linux: ls !-bF
author
Jan Kratochvil
<jan@jankratochvil.net>
Sat, 16 Sep 2023 09:19:08 +0000
(11:19 +0200)
committer
Jan Kratochvil
<jan@jankratochvil.net>
Sat, 16 Sep 2023 09:19:08 +0000
(11:19 +0200)
.bashrc
patch
|
blob
|
history
diff --git
a/.bashrc
b/.bashrc
index
0696bcf
..
0ead09c
100644
(file)
--- 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