mirror of
https://github.com/gwebu-team/profile.d.git
synced 2025-12-11 12:15:47 +00:00
fix: Don't alias ip if iproute is not installed.
Some checks failed
Makefile CI / build (push) Has been cancelled
Some checks failed
Makefile CI / build (push) Has been cancelled
This commit is contained in:
parent
2f07d57c86
commit
df3199976e
2 changed files with 14 additions and 8 deletions
|
|
@ -17,13 +17,16 @@ if [[ "$OSTYPE" != darwin* ]]; then
|
||||||
# long format with ISO dates
|
# long format with ISO dates
|
||||||
alias lll='ls --color=auto -Al "--time-style=+%Y-%m-%d %H:%M:%S GMT%z"'
|
alias lll='ls --color=auto -Al "--time-style=+%Y-%m-%d %H:%M:%S GMT%z"'
|
||||||
|
|
||||||
# color ip route
|
# if there is iproute installed
|
||||||
if ip -V | grep '^ip utility, iproute2-.*, libbpf' &>/dev/null; then
|
if command -v ip > /dev/null; then
|
||||||
# EL 8+ - "ip utility, iproute2-6.2.0, libbpf 0.5.0"
|
# color ip route
|
||||||
alias ip='ip --color=auto'
|
if ip -V | grep '^ip utility, iproute2-.*, libbpf' &>/dev/null; then
|
||||||
else
|
# EL 8+ - "ip utility, iproute2-6.2.0, libbpf 0.5.0"
|
||||||
# EL 7 - "ip utility, iproute2-ss170501"
|
alias ip='ip --color=auto'
|
||||||
alias ip='ip -c'
|
else
|
||||||
|
# EL 7 - "ip utility, iproute2-ss170501"
|
||||||
|
alias ip='ip -c'
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# MacOS aliases
|
# MacOS aliases
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
Summary: Gwebu profile.d - cool date, prompt with history, aliases
|
Summary: Gwebu profile.d - cool date, prompt with history, aliases
|
||||||
Name: gwebu-profile
|
Name: gwebu-profile
|
||||||
Version: 1.0.4
|
Version: 1.0.5
|
||||||
Release: 0
|
Release: 0
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
|
|
@ -41,6 +41,9 @@ install -m 0644 etc/profile.d/*.sh %{buildroot}%{_sysconfdir}/profile.d/
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 16 2024 Doncho Gunchev <doncho.gunchev@flyrlabs.com> - 1.0.5-0
|
||||||
|
- fix: Don't alias ip if iproute is not installed.
|
||||||
|
|
||||||
* Mon Jul 15 2024 Doncho Gunchev <doncho.gunchev@flyrlabs.com> - 1.0.4-0
|
* Mon Jul 15 2024 Doncho Gunchev <doncho.gunchev@flyrlabs.com> - 1.0.4-0
|
||||||
- Fix python virtual environment support.
|
- Fix python virtual environment support.
|
||||||
This works on MacOS with python 3.9, 3.10, 3.11 and 3.12.
|
This works on MacOS with python 3.9, 3.10, 3.11 and 3.12.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue