diff options
author | xyz <gky44px1999@gmail.com> | 2022-02-04 22:31:27 -0800 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2022-02-04 22:31:27 -0800 |
commit | 44e6f1d2494d72a5f7418cfbf5a3e89ba3377473 (patch) | |
tree | b9641c881e40cb89dc55ac7a84d9f1743571ca50 /home | |
parent | dbd296b90da36cd04cf69dbd0d2ed2fee6d6e7b2 (diff) |
.bashrc, sudo -E aliases
Diffstat (limited to 'home')
-rw-r--r-- | home/xyz/.bashrc | 10 |
1 files changed, 3 insertions, 7 deletions
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' |