Skip to content
Snippets Groups Projects
Commit 52cab309 authored by nimrod's avatar nimrod
Browse files

Interactive sudo usage will pass shell function definitions.

parent ff26244b
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ alias gen-mac="hexdump -n5 -e '\"02\" 5/1 \":%02X\" \"\\n\"' /dev/urandom" ...@@ -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 clean-swp="find \$HOME/ -name '*.swp' -delete"
alias unssh="ssh -o \"UserKnownHostsFile /dev/null\" -o \"StrictHostKeyChecking no\"" alias unssh="ssh -o \"UserKnownHostsFile /dev/null\" -o \"StrictHostKeyChecking no\""
alias todo="vim \$HOME/Documents/TODO.yml" alias todo="vim \$HOME/Documents/TODO.yml"
alias sudo="sudo " [ -n "${SHELL:-}" ] && alias sudo="sudo -E $SHELL -c" || alias sudo="sudo "
alias git="git " alias git="git "
alias xargs="xargs " alias xargs="xargs "
alias presentation='docker dev adarnimrod/presentation' alias presentation='docker dev adarnimrod/presentation'
...@@ -270,6 +270,7 @@ then ...@@ -270,6 +270,7 @@ then
[ ! -f "$sourcefile" ] || . "$sourcefile" [ ! -f "$sourcefile" ] || . "$sourcefile"
done done
! command -v direnv > /dev/null || eval "$(direnv hook bash)" ! command -v direnv > /dev/null || eval "$(direnv hook bash)"
eval "$(declare -F | sed 's/declare/export/g')"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment