From 44e6f1d2494d72a5f7418cfbf5a3e89ba3377473 Mon Sep 17 00:00:00 2001 From: xyz Date: Fri, 4 Feb 2022 22:31:27 -0800 Subject: .bashrc, sudo -E aliases --- home/xyz/.bashrc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'home/xyz/.bashrc') diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc index b0e8141d..c4183a15 100644 --- a/home/xyz/.bashrc +++ b/home/xyz/.bashrc @@ -35,12 +35,9 @@ PS1="\[$(tput setaf 1)\][\u@\h \W]\$ \[$(tput sgr0)\]" for cmd in iotop nethogs hardcode-fixer ventoy du units_cur fbgrab powertop nft rpi-imager; do alias $cmd="sudo $cmd" done -#for cmd in weechat; do -# alias $cmd="mullvad connect -w; kill -RTMIN+4 $(cat "$XDG_CACHE_HOME/pidofbar"); $cmd" -#done -#for cmd in qbittorrent telegram-desktop; do -# alias $cmd="mullvad connect -w; kill -RTMIN+4 $(cat "$XDG_CACHE_HOME/pidofbar"); o $cmd" -#done +for cmd in pacdiff 'tree -a'; do + alias ${cmd%% *}="sudo -E $cmd" +done unset cmd # same name @@ -56,7 +53,6 @@ alias remind='remind -@' alias rm='rm -I' alias sdcv='sdcv --color' alias shellcheck='shellcheck -x' -alias tree='sudo -E tree -a' alias uname='uname -a' alias watch='watch -c' -- cgit v1.2.3-70-g09d2