Fixed uutils-coreutils aliasing script

Used yay insstead of pacman
This commit is contained in:
GaspardCulis 2023-10-27 13:35:58 +02:00
parent af06d78433
commit af16e57841

View file

@ -3,6 +3,8 @@ alias ls='ls --color=auto'
alias jaaj="jaaj | lolcat" alias jaaj="jaaj | lolcat"
alias esp-idf-setup=". ~/.local/lib/esp-idf/export.sh" alias esp-idf-setup=". ~/.local/lib/esp-idf/export.sh"
alias steam="steam-runtime"
# Git # Git
alias ga="git add" alias ga="git add"
alias gc="git commit" alias gc="git commit"
@ -23,7 +25,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 b in $(yay -Ql uutils-coreutils | grep bin | cut -d ' ' -f 2 | cut -d '/' -f 4 | cut -d '-' -f 2); do for b in $(pacman -Ql uutils-coreutils | grep bin | cut -d ' ' -f 2 | cut -d '/' -f 4 | cut -d '-' -f 2); do
alias $b="uu-$b" alias $b="uu-$b"
done done
unalias [ unalias [