Commit 3e4b5379 authored by nimrod's avatar nimrod
Browse files

fixup! Interactive sudo usage will pass shell function definitions.

parent 6f7f5143
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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