From f61905505884a2c73170fa98ba7d56505943c9e6 Mon Sep 17 00:00:00 2001 From: jon Date: Sat, 20 Aug 2022 10:38:42 -0500 Subject: [PATCH] sudo alias to expand aliases after sudo --- bash/.bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index 6f9c919..a457215 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -31,6 +31,9 @@ alias s='sudo' alias df='sudo df -hT -x tmpfs -x devtmpfs' alias rsync='rsync --progress' alias lg='ll | grep -i $0' +# allows alias expansion after sudo, eg: sudo l +# bash man page, "last char of alias value is space or tab..." +alias sudo='sudo ' #bind 'set completion-ignore-case on' set bell-style none