mirror of
https://github.com/gwebu-team/profile.d.git
synced 2025-12-11 13:15:45 +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
|
if [[ "$OSTYPE" != darwin* ]]; then
|
||||||
# long format with ISO dates
|
# 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
|
# color ip route
|
||||||
if ip -V | grep '^ip utility, iproute2-.*, libbpf' &>/dev/null; then
|
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"
|
# EL 7 - "ip utility, iproute2-ss170501"
|
||||||
alias ip='ip -c'
|
alias ip='ip -c'
|
||||||
fi
|
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
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue