aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/files/neomutt/mailcap2
-rwxr-xr-xsrc/config/files/neomutt/mutt_generate_attachment_commands4
-rw-r--r--src/config/tasks/main.yaml2
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