bash: add e and se alias for editing files with emacs
[~bandali/configs] / .bashrc
diff --git a/.bashrc b/.bashrc
index 5928570..bc59480 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -41,6 +41,8 @@ alias mb="mbsync csclub; mbsync uwaterloo; mbsync amin"
 alias gm="getmail"
 alias m="mb; gm"
 alias best="youtube-dl -f best"
+alias e="$EDITOR"
+alias se="SUDO_EDITOR=\"emacsclient\" sudo -e"
 
 aur() {
    cd ~/usr/builds