aboutsummaryrefslogtreecommitdiff
path: root/mkshrc.d/00-sudo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mkshrc.d/00-sudo.sh')
-rw-r--r--mkshrc.d/00-sudo.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkshrc.d/00-sudo.sh b/mkshrc.d/00-sudo.sh
new file mode 100644
index 0000000..5abf549
--- /dev/null
+++ b/mkshrc.d/00-sudo.sh
@@ -0,0 +1,4 @@
+if [ -x "$(command -v /usr/bin/sudo)" ]; then
+ alias sudovi="EDITOR=vi sudoedit $@"
+ alias sudovim="EDITOR=vim sudoedit $@"
+fi