Merge pull request 'bash_aliases: Made alias for loop for rust coreutils future-proof' (#2) from fix/uu-utils-aliases into main
Reviewed-on: https://gitea.ahur.ac/Jaaj-San/pointfichiers/pulls/2
This commit is contained in:
commit
49be4a0afa
1 changed files with 2 additions and 4 deletions
|
@ -19,11 +19,9 @@ alias ip="ip --color=auto"
|
||||||
# uutils-coreutils aliases
|
# uutils-coreutils aliases
|
||||||
if command -v pacman &> /dev/null; then
|
if command -v pacman &> /dev/null; then
|
||||||
if pacman -Qi uutils-coreutils &> /dev/null; then
|
if pacman -Qi uutils-coreutils &> /dev/null; then
|
||||||
for b in $(pacman -Ql uutils-coreutils | grep bin | cut -d ' ' -f 2 | cut -d '/' -f 4 | cut -d '-' -f 2); do
|
for i in $(pacman -Ql uutils-coreutils | cut -d \ -f 2- | grep -E '^usr/bin/.+' | awk -F / '{ print $3 }' | sed 's/^uu-//' | grep -v '^\[$' | xargs); do
|
||||||
alias $b="uu-$b"
|
alias "${i}=uu-${i}"
|
||||||
done
|
done
|
||||||
unalias [
|
|
||||||
alias ls="uu-ls --color=auto"
|
alias ls="uu-ls --color=auto"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue