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