diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-03-30 10:41:25 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-03-30 10:41:25 +0800 |
| commit | efd882787f4f5b5accd8ff6cfb4068608ea545d4 (patch) | |
| tree | ff4939f281c918320c63af2ba13794518e143c1e | |
| parent | bb167c51b7b9570bed9ee99866319c091815bb99 (diff) | |
update
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | alias | 5 | ||||
| -rw-r--r-- | misc/mailcap | 2 | ||||
| -rw-r--r-- | muttrc | 3 |
4 files changed, 10 insertions, 1 deletions
| @@ -57,6 +57,7 @@ gpg: | |||
| 57 | mutt: | 57 | mutt: |
| 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 | ||
| 61 | tmux: | 62 | tmux: |
| 62 | ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf | 63 | ln -sf `pwd`/misc/tmux.conf ~/.tmux.conf |
| @@ -54,7 +54,10 @@ alias s='sudo systemctl' | |||
| 54 | alias j='sudo journalctl -xe' | 54 | alias j='sudo journalctl -xe' |
| 55 | alias m='mutt' | 55 | alias m='mutt' |
| 56 | alias ju='sudo journalctl -u' | 56 | alias ju='sudo journalctl -u' |
| 57 | alias path="echo $PATH" | 57 | # Should not use alias, because $PATH is not initialized |
| 58 | path() { | ||
| 59 | echo $PATH | ||
| 60 | } | ||
| 58 | alias fd="echo /proc/$$/fd; ls -l /proc/$$/fd" | 61 | alias fd="echo /proc/$$/fd; ls -l /proc/$$/fd" |
| 59 | alias src="source $HOME/.$(basename $SHELL)rc" | 62 | alias src="source $HOME/.$(basename $SHELL)rc" |
| 60 | alias ll='ls -alh' | 63 | alias 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 @@ | |||
| 1 | text/html; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal; | ||
| 2 | text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput; | ||
| @@ -33,6 +33,9 @@ set header = no | |||
| 33 | set pager_stop | 33 | set pager_stop |
| 34 | set sleep_time=0 # When changing folder | 34 | set sleep_time=0 # When changing folder |
| 35 | 35 | ||
| 36 | # Open mail externally | ||
| 37 | bind 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 |
| 38 | bind pager G bottom | 41 | bind pager G bottom |