aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-03-30 10:41:25 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-03-30 10:41:25 +0800
commitefd882787f4f5b5accd8ff6cfb4068608ea545d4 (patch)
treeff4939f281c918320c63af2ba13794518e143c1e
parentbb167c51b7b9570bed9ee99866319c091815bb99 (diff)
update
-rw-r--r--Makefile1
-rw-r--r--alias5
-rw-r--r--misc/mailcap2
-rw-r--r--muttrc3
4 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1d26882..84c7bc9 100644
--- a/Makefile
+++ b/Makefile
@@ -57,6 +57,7 @@ gpg:
57mutt: 57mutt:
58 mkdir -p ~/.config/mutt 58 mkdir -p ~/.config/mutt
59 ln -sf `pwd`/muttrc ~/.config/mutt/muttrc 59 ln -sf `pwd`/muttrc ~/.config/mutt/muttrc
60 ln -sf `pwd`/misc/mailcap ~/.mailcap
60 61
61tmux: 62tmux:
62 ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf 63 ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf
diff --git a/alias b/alias
index e259b63..260963a 100644
--- a/alias
+++ b/alias
@@ -54,7 +54,10 @@ alias s='sudo systemctl'
54alias j='sudo journalctl -xe' 54alias j='sudo journalctl -xe'
55alias m='mutt' 55alias m='mutt'
56alias ju='sudo journalctl -u' 56alias ju='sudo journalctl -u'
57alias path="echo $PATH" 57# Should not use alias, because $PATH is not initialized
58path() {
59 echo $PATH
60}
58alias fd="echo /proc/$$/fd; ls -l /proc/$$/fd" 61alias fd="echo /proc/$$/fd; ls -l /proc/$$/fd"
59alias src="source $HOME/.$(basename $SHELL)rc" 62alias src="source $HOME/.$(basename $SHELL)rc"
60alias ll='ls -alh' 63alias ll='ls -alh'
diff --git a/misc/mailcap b/misc/mailcap
new file mode 100644
index 0000000..b3ae9f4
--- /dev/null
+++ b/misc/mailcap
@@ -0,0 +1,2 @@
1text/html; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal;
2text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput;
diff --git a/muttrc b/muttrc
index c25bde3..4d1ef75 100644
--- a/muttrc
+++ b/muttrc
@@ -33,6 +33,9 @@ set header = no
33set pager_stop 33set pager_stop
34set sleep_time=0 # When changing folder 34set sleep_time=0 # When changing folder
35 35
36# Open mail externally
37bind attach x view-mailcap
38
36# Vim-style key binding, \c means Ctrl 39# Vim-style key binding, \c means Ctrl
37# ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim%E9%A3%8E%E6%A0%BC%E9%94%AE%E4%BD%8D%E7%BB%91%E5%AE%9A 40# ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim%E9%A3%8E%E6%A0%BC%E9%94%AE%E4%BD%8D%E7%BB%91%E5%AE%9A
38bind pager G bottom 41bind pager G bottom