Commit 9316d1d1 authored by nimrod's avatar nimrod
Browse files

Another stab at sudo with shell functions (mainly monitor).

parent c8906a73
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -111,6 +111,11 @@ alias color='less --raw-control-chars -p'
alias pip2='python2 -m pip'
alias pip3='python3 -m pip'

sudome () (
    eval "$(declare -F | sed 's/^declare/export/g')"
    sudo -E "$SHELL" -c "$@"
)

monitor () {
    eval "$@"
    code="$?"