From e4d961a715c37511ada78fba25c48e42ad2b2f15 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Fri, 19 Jan 2024 14:24:06 +0100 Subject: [PATCH] bash_aliases: Fixed uutils-coreutils aliasing --- shell/bash/.bash_aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/bash/.bash_aliases b/shell/bash/.bash_aliases index 21b5321..c1182dc 100644 --- a/shell/bash/.bash_aliases +++ b/shell/bash/.bash_aliases @@ -19,7 +19,7 @@ alias ip="ip --color=auto" # uutils-coreutils aliases if command -v pacman &> /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}" done alias ls="uu-ls --color=auto"