summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-06-06 00:37:03 -0400
committerAmin Bandali <bandali@gnu.org>2019-06-06 00:37:03 -0400
commitd355f9979367744a458c39531f85e8e64cc13bbf (patch)
treeff2ac728bc23b5e990460ca8b0b7a72d5ae57fc4
parentb65084819f9be778b2acf94bdfeecdf3aeab0a06 (diff)
downloadconfigs-d355f9979367744a458c39531f85e8e64cc13bbf.tar.gz
configs-d355f9979367744a458c39531f85e8e64cc13bbf.tar.xz
configs-d355f9979367744a458c39531f85e8e64cc13bbf.zip
bash: add e and se alias for editing files with emacs
-rw-r--r--.bashrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 5928570..bc59480 100644
--- 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