diff --git a/.bashrc b/.bashrc index 1225ee0..74d5710 100644 --- a/.bashrc +++ b/.bashrc @@ -73,7 +73,10 @@ alias grep='grep --color=auto' alias lsblk='lsblk -o NAME,FSTYPE,SIZE,TYPE,MOUNTPOINT' # Always use sudo when using systemctl. Pairs well with passwordless sudo for systemctl. -alias systemctl='sudo --preserve-env systemctl' +alias systemctl='sudo -E systemctl' + +# Always use sudo when using nmap. +alias nmap='sudo -E nmap' # I'm tired of managing weechat configs and multiple nicks # Client depends: ssh, mosh, correct ssh host configuration