diff options
author | Aaditya Dhruv <[email protected]> | 2025-08-06 15:45:26 -0500 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2025-08-06 15:45:26 -0500 |
commit | 6d45a0e7e19c512cc78a9c7758805ce40469395a (patch) | |
tree | c3d2aba89c67331f41637b20342b22f3b3c90675 | |
parent | 2d7c5191838711f92581755f7f97d63a53fc3c49 (diff) |
Minor bugfixes in mail and vimrcgnome-refactor
- Fix vimrc install path
- Update mutt_generate_attachment_commands script and mailcap file for
pdf
-rw-r--r-- | src/config/files/neomutt/mailcap | 2 | ||||
-rwxr-xr-x | src/config/files/neomutt/mutt_generate_attachment_commands | 4 | ||||
-rw-r--r-- | src/config/tasks/main.yaml | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/config/files/neomutt/mailcap b/src/config/files/neomutt/mailcap index f93be9a..88718dd 100644 --- a/src/config/files/neomutt/mailcap +++ b/src/config/files/neomutt/mailcap @@ -1 +1,3 @@ text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -collapse_br_tags -dump %s; nametemplate=%s.html; copiousoutput +application/pdf; firefox %s; copiousoutput +application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice --writer %s; test=test -n "$DISPLAY"; copiousoutput diff --git a/src/config/files/neomutt/mutt_generate_attachment_commands b/src/config/files/neomutt/mutt_generate_attachment_commands index 2f1f011..cc97dcc 100755 --- a/src/config/files/neomutt/mutt_generate_attachment_commands +++ b/src/config/files/neomutt/mutt_generate_attachment_commands @@ -2,6 +2,6 @@ NNN_OPTS=d nnn -p /tmp/nnn_pick rm -f /tmp/nnn_attach_cmds -for f in $(cat /tmp/nnn_pick); do +while read f; do echo "push \"<attach-file> ${f}<enter>\"" >> /tmp/nnn_attach_cmds -done +done < /tmp/nnn_pick diff --git a/src/config/tasks/main.yaml b/src/config/tasks/main.yaml index 36f4746..497134e 100644 --- a/src/config/tasks/main.yaml +++ b/src/config/tasks/main.yaml @@ -48,7 +48,7 @@ become_user: "{{ username }}" ansible.builtin.copy: src: neovim/vimrc - dest: "/home/{{ username }}" + dest: "/home/{{ username }}/.vimrc" backup: yes - name: Setup init.vim |