bash_aliases: Fixed uutils-coreutils aliasing
This commit is contained in:
parent
49be4a0afa
commit
e4d961a715
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ 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 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
|
for i in $(pacman -Ql uutils-coreutils | cut -d \ -f 2- | grep -E '^/usr/bin/.+' | awk -F / '{ print $4 }' | sed 's/^uu-//' | grep -v '^\[$' | xargs); do
|
||||||
alias "${i}=uu-${i}"
|
alias "${i}=uu-${i}"
|
||||||
done
|
done
|
||||||
alias ls="uu-ls --color=auto"
|
alias ls="uu-ls --color=auto"
|
||||||
|
|
Loading…
Reference in a new issue