From 1a5c1eb8043c60fa632a2f87eeee49a2ff3227e6 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Wed, 21 Jun 2017 14:03:37 +0200 Subject: [PATCH] add interactive latex scripts --- email/.mutt/notmuch.muttrc | 34 ++++++++++++++++---------------- shell/.bashrc | 3 +-- vim/.vim/spell/en.utf-8.add | 2 ++ vim/.vim/spell/en.utf-8.add.spl | Bin 0 -> 191 bytes x/.local/bin/pdflatexi | 22 +++++++++++++++++++++ x/.local/bin/thumbnailer.sh | 6 +----- x/.local/bin/tlmgri | 23 +++++++++++++++++++++ 7 files changed, 66 insertions(+), 24 deletions(-) create mode 100644 vim/.vim/spell/en.utf-8.add.spl create mode 100755 x/.local/bin/pdflatexi create mode 100755 x/.local/bin/tlmgri diff --git a/email/.mutt/notmuch.muttrc b/email/.mutt/notmuch.muttrc index 673ec6f..6b299dc 100644 --- a/email/.mutt/notmuch.muttrc +++ b/email/.mutt/notmuch.muttrc @@ -1,19 +1,19 @@ -macro index "\ - set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ - notmuch-mutt -r --prompt search\ - `echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`\ - set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ - "notmuch: search mail" +macro index \ +"set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ +notmuch-mutt -r --prompt search\ +`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`\ +set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ + "notmuch: search mail" -macro index "\ - set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ - notmuch-mutt -r thread\ - `echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`\ - set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ - "notmuch: reconstruct thread" +macro index \ +"set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ +notmuch-mutt -r thread\ +`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`\ +set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ + "notmuch: reconstruct thread" -macro index "\ - set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ - notmuch-mutt tag -- -inbox\ - set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ - "notmuch: remove message from inbox" +macro index \ +"set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ +notmuch-mutt tag -- -inbox\ +set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ + "notmuch: remove message from inbox" diff --git a/shell/.bashrc b/shell/.bashrc index 92a1b0a..1a598b5 100644 --- a/shell/.bashrc +++ b/shell/.bashrc @@ -19,8 +19,7 @@ export CLEAN_HOME=/opt/clean export PATH=~/.local/bin:$PATH export PATH=$PATH:$CLEAN_HOME/lib/exe:$CLEAN_HOME/bin export PATH=$PATH:~/projects/esp-open-sdk/xtensa-lx106-elf/bin -export PATH=$PATH:/opt/texlive/2016/bin/x86_64-linux -export PATH=$PATH:~/.local/texlive/2016/bin/x86_64-linux +export PATH=$PATH:/opt/texlive/2017/bin/x86_64-linux export GTK_IM_MODULE=xim export QT_IM_MODULE=xim diff --git a/vim/.vim/spell/en.utf-8.add b/vim/.vim/spell/en.utf-8.add index 97ca7c2..60b672d 100644 --- a/vim/.vim/spell/en.utf-8.add +++ b/vim/.vim/spell/en.utf-8.add @@ -8,3 +8,5 @@ diphone SDS Microcontrollers tonotopic +backend +backends diff --git a/vim/.vim/spell/en.utf-8.add.spl b/vim/.vim/spell/en.utf-8.add.spl new file mode 100644 index 0000000000000000000000000000000000000000..f05f0a06ffcc431b6be1148c719aae0b7728f036 GIT binary patch literal 191 zcmXAjF%AMT3MbC{DFdkmj3Vs5s@QNd=z|wFLN8?%J%M#eLY{irBaSR5&7*OfWo=@WQO(5Vj4D6`c}94h318/dev/null | grep -Po "^.*(?=:$)")" +if [[ -z "$PKGS" ]]; then exit 1; fi +if [[ $(wc -w <<< "$PKGS") -eq 1 ]] +then + tlmgr install "$PKGS" +else + select package in $PKGS; do + INDEX=1 + for p in $PKGS; do + if [ $((INDEX++)) -eq $REPLY ]; then + tlmgr install "$p" + fi + done + break; + done +fi -- 2.20.1