isync: move mbsyncrc to $XDG_CONFIG_HOME/isync
authorAmin Bandali <bandali@gnu.org>
Sat, 11 May 2019 00:00:34 +0000 (20:00 -0400)
committerAmin Bandali <bandali@gnu.org>
Sat, 11 May 2019 00:00:34 +0000 (20:00 -0400)
.bashrc
.config/isync/mbsyncrc [new file with mode: 0644]
.emacs.d/var/eshell/alias
.mbsyncrc [deleted file]

diff --git a/.bashrc b/.bashrc
index a5cc322..7b7d7f8 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -33,6 +33,7 @@ alias mv="mv -iv"
 alias cp="cp -iv"
 alias scl=systemctl
 alias jcl=journalctl
+alias mbsync='mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc'
 alias m="mbsync csclub; mbsync uwaterloo; mbsync amin"
 alias best="youtube-dl -f best"
 
diff --git a/.config/isync/mbsyncrc b/.config/isync/mbsyncrc
new file mode 100644 (file)
index 0000000..96b3b28
--- /dev/null
@@ -0,0 +1,79 @@
+# Global defaults
+CopyArrivalDate yes
+Create Both
+Expunge Both
+
+######
+IMAPAccount amin
+Host mail.bndl.org
+User amin@bndl.org
+PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/amin.gpg"
+SSLType IMAPS
+
+IMAPStore amin-remote
+Account amin
+
+IMAPAccount amin-dovecot
+Host 127.0.0.1
+Port 143
+User amin@bndl.local
+PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/amin-dovecot.gpg"
+SSLType None
+
+IMAPStore amin-local
+Account amin-dovecot
+
+Channel amin
+Master :amin-remote:
+Slave :amin-local:
+Patterns *
+
+######
+IMAPAccount uwaterloo
+Host connect.uwaterloo.ca
+User abandali
+PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/uwaterloo.gpg"
+SSLType IMAPS
+
+IMAPStore uwaterloo-remote
+Account uwaterloo
+
+IMAPAccount uwaterloo-dovecot
+Host 127.0.0.1
+Port 143
+User abandali@uw.local
+PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/uwaterloo-dovecot.gpg"
+SSLType None
+
+IMAPStore uwaterloo-local
+Account uwaterloo-dovecot
+
+Channel uwaterloo
+Master :uwaterloo-remote:
+Slave :uwaterloo-local:
+Patterns *
+
+######
+IMAPAccount csclub
+Host mail.csclub.uwaterloo.ca
+User abandali
+PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/csclub.gpg"
+SSLType IMAPS
+
+IMAPStore csclub-remote
+Account csclub
+
+IMAPAccount csclub-dovecot
+Host 127.0.0.1
+Port 143
+User abandali@csc.uw.local
+PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/csclub-dovecot.gpg"
+SSLType None
+
+IMAPStore csclub-local
+Account csclub-dovecot
+
+Channel csclub
+Master :csclub-remote:
+Slave :csclub-local:
+Patterns *
index e086adf..a2d9b2f 100644 (file)
@@ -14,4 +14,5 @@ alias up eshell-up $1
 alias pk eshell-up-peek $1
 alias vi find-file $1
 alias vim find-file $1
+alias mbsync mbsync -c $XDG_CONFIG_HOME/isync/mbsyncrc $*
 alias m mbsync csclub; mbsync uwaterloo; mbsync amin
diff --git a/.mbsyncrc b/.mbsyncrc
deleted file mode 100644 (file)
index 96b3b28..0000000
--- a/.mbsyncrc
+++ /dev/null
@@ -1,79 +0,0 @@
-# Global defaults
-CopyArrivalDate yes
-Create Both
-Expunge Both
-
-######
-IMAPAccount amin
-Host mail.bndl.org
-User amin@bndl.org
-PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/amin.gpg"
-SSLType IMAPS
-
-IMAPStore amin-remote
-Account amin
-
-IMAPAccount amin-dovecot
-Host 127.0.0.1
-Port 143
-User amin@bndl.local
-PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/amin-dovecot.gpg"
-SSLType None
-
-IMAPStore amin-local
-Account amin-dovecot
-
-Channel amin
-Master :amin-remote:
-Slave :amin-local:
-Patterns *
-
-######
-IMAPAccount uwaterloo
-Host connect.uwaterloo.ca
-User abandali
-PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/uwaterloo.gpg"
-SSLType IMAPS
-
-IMAPStore uwaterloo-remote
-Account uwaterloo
-
-IMAPAccount uwaterloo-dovecot
-Host 127.0.0.1
-Port 143
-User abandali@uw.local
-PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/uwaterloo-dovecot.gpg"
-SSLType None
-
-IMAPStore uwaterloo-local
-Account uwaterloo-dovecot
-
-Channel uwaterloo
-Master :uwaterloo-remote:
-Slave :uwaterloo-local:
-Patterns *
-
-######
-IMAPAccount csclub
-Host mail.csclub.uwaterloo.ca
-User abandali
-PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/csclub.gpg"
-SSLType IMAPS
-
-IMAPStore csclub-remote
-Account csclub
-
-IMAPAccount csclub-dovecot
-Host 127.0.0.1
-Port 143
-User abandali@csc.uw.local
-PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/csclub-dovecot.gpg"
-SSLType None
-
-IMAPStore csclub-local
-Account csclub-dovecot
-
-Channel csclub
-Master :csclub-remote:
-Slave :csclub-local:
-Patterns *