From 0706f32a65d51ed35cbc5f732bd2ccef2600dfca Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 17 May 2020 15:56:46 +1200 Subject: Rehash plenv/pyenv on usage, not shell startup Probably a better place for it; it's too slow otherwise. --- plenv/shrc.d/plenv.sh | 5 ++++- pyenv/shrc.d/pyenv.sh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plenv/shrc.d/plenv.sh b/plenv/shrc.d/plenv.sh index 5848fd5b..bb52ffe2 100644 --- a/plenv/shrc.d/plenv.sh +++ b/plenv/shrc.d/plenv.sh @@ -6,13 +6,16 @@ plenv() { shift eval "$(plenv sh-rehash "$@")" ;; + sh-rehash) + command plenv "$@" + ;; shell) shift eval "$(plenv sh-shell "$@")" ;; *) command plenv "$@" + plenv rehash ;; esac } -plenv rehash diff --git a/pyenv/shrc.d/pyenv.sh b/pyenv/shrc.d/pyenv.sh index 1c90f8f2..0a946164 100644 --- a/pyenv/shrc.d/pyenv.sh +++ b/pyenv/shrc.d/pyenv.sh @@ -6,13 +6,16 @@ pyenv() { shift eval "$(pyenv sh-rehash "$@")" ;; + sh-rehash) + command pyenv "$@" + ;; shell) shift eval "$(pyenv sh-shell "$@")" ;; *) command pyenv "$@" + pyenv rehash ;; esac } -pyenv rehash -- cgit v1.2.3 From 106f67dd929b8af52125e4cc1198914e5455c89e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 17 May 2020 17:19:19 +1200 Subject: Port some common personal macros into muttrc --- mutt/muttrc | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/mutt/muttrc b/mutt/muttrc index e2356dd0..b91c66cd 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -138,5 +138,46 @@ macro generic,index,browser,pager \\R \ ':source ~/.config/mutt/muttrc:echo "Config reloaded!"' \ 'Reload muttrc' +# SpamAssassin spam tagging; Vim's muttrc syntax highlighting hates this, but +# it *is* valid +spam 'X-Spam-Flag: YES' 'SPAM' + +# Defaults for SpamAssassin training +set my_salearn = 'sa-learn' +set my_spam_folder = "$folder/spam" + # Machine or account specific settings source ~/.config/mutt/muttrc.d/src| + +# These hooks and macros go *after* we're done loading user options, as they +# bake in variables like $folder. Only hooks and macros dependent on these +# paths should be set after this point. + +# Shortcuts to jump to mailboxes +macro generic,index,browser,pager gi \ + "$spoolfile" \ + "Change to inbox" +macro generic,index,browser,pager gs \ + "$record" \ + "Change to sent" +macro generic,index,browser,pager gd \ + "$postponed" \ + "Change to drafts" + +# SpamAssassin spam tagging +folder-hook . \ + 'macro index,pager \Cs \ + "$my_salearn --spam$my_spam_folder" \ + "Train as spam, move to spam"' +folder-hook . \ + 'macro index,pager \Ch \ + "$my_salearn --ham" \ + "Retrain as ham"' +folder-hook $my_spam_folder \ + 'macro index,pager \Ch \ + "$my_salearn --ham!" \ + "Train as ham, move to inbox"' +folder-hook $my_spam_folder \ + 'macro index,pager \Cs \ + "$my_salearn --spam" \ + "Retrain as spam"' -- cgit v1.2.3 From 8b8247a67bc91d5873663c69ff279ea1f9e7fa6f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 17 May 2020 17:19:31 +1200 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 206452e1..633ddfb1 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -tejr dotfiles v8.39.0 -Sun, 17 May 2020 03:45:25 +0000 +tejr dotfiles v8.40.0 +Sun, 17 May 2020 05:19:31 +0000 -- cgit v1.2.3