Commit a7af848a authored by nimrod's avatar nimrod
Browse files

fixup! Interactive sudo usage will pass shell function definitions.

parent 1be7ea6f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ alias gen-mac="hexdump -n5 -e '\"02\" 5/1 \":%02X\" \"\\n\"' /dev/urandom"
alias clean-swp="find \$HOME/ -name '*.swp' -delete"
alias unssh="ssh -o \"UserKnownHostsFile /dev/null\" -o \"StrictHostKeyChecking no\""
alias todo="vim \$HOME/Documents/TODO.yml"
[ -n "${SHELL:-}" ] && alias sudo="sudo -E $SHELL -c" || alias sudo="sudo "
alias sudo="sudo "
alias git="git "
alias xargs="xargs "
alias presentation='docker dev adarnimrod/presentation'
@@ -270,6 +270,7 @@ 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')"
fi