From 7a60ec4ccb752ead11795e905d5b68a9773a003f Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Thu, 21 Jan 2016 16:21:30 -0600 Subject: [PATCH] added alias nmap to sudo nmap --- .bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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