mirror of
https://github.com/gwebu-team/profile.d.git
synced 2025-12-09 12:05:46 +00:00
Add ls aliases for MacOS (ll, lll).
This commit is contained in:
parent
0ec8d81216
commit
19f325db4c
1 changed files with 5 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ alias less='less -R'
|
|||
|
||||
if [[ "$OSTYPE" != darwin* ]]; then
|
||||
# long format with ISO dates
|
||||
alias lll='ls -Al "--time-style=+%Y-%m-%d %H:%M:%S %4Z"'
|
||||
alias lll='ls --color=auto -Al "--time-style=+%Y-%m-%d %H:%M:%S %4Z"'
|
||||
|
||||
# color ip route
|
||||
if ip -V | grep '^ip utility, iproute2-.*, libbpf' &>/dev/null; then
|
||||
|
|
@ -25,4 +25,8 @@ if [[ "$OSTYPE" != darwin* ]]; then
|
|||
# EL 7 - "ip utility, iproute2-ss170501"
|
||||
alias ip='ip -c'
|
||||
fi
|
||||
else
|
||||
# MacOS aliases
|
||||
alias ll='ls --color=auto -l'
|
||||
alias lll='ls --color=auto -Al -D "+%Y-%m-%d %H:%M:%S %4Z"'
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue