diff --git a/.bashrc b/.bashrc index 2a8007818ad81422f3dcc1ee4623981b0143162b..d2931618b66556383a70b77b33dea80ffbd4d04f 100644 --- a/.bashrc +++ b/.bashrc @@ -271,8 +271,10 @@ then [ ! -f "$sourcefile" ] || . "$sourcefile" done ! command -v direnv > /dev/null || eval "$(direnv hook bash)" - alias sudo="sudo -E bash -c" eval "$(declare -F | sed 's/declare/export/g')" + sudo () { + command sudo -E bash -c "$*" + } fi