Merge branch 'dev' into logos
mail: fix globbing in subdirectories git: fix .gitignore for .local/bin
This commit is contained in:
commit
2e07e0a7ce
@ -25,7 +25,7 @@ ExpireUnread no
|
|||||||
# End Profile
|
# End Profile
|
||||||
|
|
||||||
# University
|
# University
|
||||||
IMAPStore david.julien@etu.univ-nantes.fr-remote
|
IMAPStore david.julien@univ-nantes.fr-remote
|
||||||
Host imaps.etu.univ-nantes.fr
|
Host imaps.etu.univ-nantes.fr
|
||||||
Port 993
|
Port 993
|
||||||
User E22D718J
|
User E22D718J
|
||||||
@ -34,15 +34,15 @@ AuthMechs LOGIN
|
|||||||
SSLType IMAPS
|
SSLType IMAPS
|
||||||
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
MaildirStore david.julien@etu.univ-nantes.fr-local
|
MaildirStore david.julien@univ-nantes.fr-local
|
||||||
Subfolders Verbatim
|
Subfolders Verbatim
|
||||||
Path /home/swytch/.local/share/mail/david.julien@etu.univ-nantes.fr/
|
Path /home/swytch/.local/share/mail/david.julien@univ-nantes.fr/
|
||||||
Inbox /home/swytch/.local/share/mail/david.julien@etu.univ-nantes.fr/INBOX
|
Inbox /home/swytch/.local/share/mail/david.julien@univ-nantes.fr/INBOX
|
||||||
|
|
||||||
Channel david.julien@etu.univ-nantes.fr
|
Channel david.julien@univ-nantes.fr
|
||||||
Expunge Both
|
Expunge Both
|
||||||
Far :david.julien@etu.univ-nantes.fr-remote:
|
Far :david.julien@univ-nantes.fr-remote:
|
||||||
Near :david.julien@etu.univ-nantes.fr-local:
|
Near :david.julien@univ-nantes.fr-local:
|
||||||
Patterns * !"[Gmail]/All Mail"
|
Patterns * !"[Gmail]/All Mail"
|
||||||
Create Both
|
Create Both
|
||||||
SyncState *
|
SyncState *
|
||||||
|
@ -9,10 +9,10 @@ tls on
|
|||||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||||
logfile /home/swytch/.config/msmtp/msmtp.log
|
logfile /home/swytch/.config/msmtp/msmtp.log
|
||||||
|
|
||||||
account david.julien@etu.univ-nantes.fr
|
account david.julien@univ-nantes.fr
|
||||||
host smtp.etu.univ-nantes.fr
|
host smtp.etu.univ-nantes.fr
|
||||||
port 587
|
port 587
|
||||||
from david.julien@etu.univ-nantes.fr
|
from david.julien@univ-nantes.fr
|
||||||
user E22D718J
|
user E22D718J
|
||||||
passwordeval "pass univ-nantes.fr/E22D718J"
|
passwordeval "pass univ-nantes.fr/E22D718J"
|
||||||
auth on
|
auth on
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
# vim: filetype=neomuttrc
|
# vim: filetype=neomuttrc
|
||||||
# muttrc file for account david.julien@etu.univ-nantes.fr
|
# muttrc file for account david.julien@univ-nantes.fr
|
||||||
set realname = "David JULIEN"
|
set realname = "David JULIEN"
|
||||||
set from = "david.julien@etu.univ-nantes.fr"
|
set from = "david.julien@univ-nantes.fr"
|
||||||
set sendmail = "msmtp -a david.julien@etu.univ-nantes.fr"
|
set sendmail = "msmtp -a david.julien@univ-nantes.fr"
|
||||||
alias me david.julien <david.julien@etu.univ-nantes.fr>
|
alias me david.julien <david.julien@univ-nantes.fr>
|
||||||
set folder = "$XDG_DATA_HOME/mail/david.julien@etu.univ-nantes.fr"
|
set folder = "$XDG_DATA_HOME/mail/david.julien@univ-nantes.fr"
|
||||||
set header_cache = "$XDG_CACHE_HOME/mutt/david.julien@etu.univ-nantes.fr/headers"
|
set header_cache = "$XDG_CACHE_HOME/mutt/david.julien@univ-nantes.fr/headers"
|
||||||
set message_cachedir = "$XDG_CACHE_HOME/mutt/david.julien@etu.univ-nantes.fr/bodies"
|
set message_cachedir = "$XDG_CACHE_HOME/mutt/david.julien@univ-nantes.fr/bodies"
|
||||||
set mbox_type = Maildir
|
set mbox_type = Maildir
|
||||||
|
|
||||||
set crypt_autosign = yes
|
set crypt_autosign = yes
|
||||||
set pgp_sign_as = "0x70F6BD57D3BD8027"
|
set pgp_sign_as = "0x1DD6B2BA6DD78810"
|
||||||
|
|
||||||
bind index,pager gg noop
|
bind index,pager gg noop
|
||||||
bind index,pager g noop
|
bind index,pager g noop
|
||||||
@ -21,9 +21,9 @@ unmailboxes *
|
|||||||
unalternates *
|
unalternates *
|
||||||
set signature="$XDG_CONFIG_HOME/mutt/accounts/nantes.signature"
|
set signature="$XDG_CONFIG_HOME/mutt/accounts/nantes.signature"
|
||||||
unmacro index o
|
unmacro index o
|
||||||
macro index o "<shell-escape>mailsync<enter>" "run mbsync to sync david.julien@etu.univ-nantes.fr"
|
macro index o "<shell-escape>mailsync<enter>" "run mbsync to sync david.julien@univ-nantes.fr"
|
||||||
|
|
||||||
mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=thesis"
|
mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=thesis" "=admin" "=login" "=teaching" "=teaching/X11I020" "=teaching/X11I040"
|
||||||
set record = "+Sent"
|
set record = "+Sent"
|
||||||
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
|
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
|
||||||
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
|
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
|
@ -2,6 +2,6 @@
|
|||||||
source $XDG_CONFIG_HOME/mutt/neomutt.muttrc
|
source $XDG_CONFIG_HOME/mutt/neomutt.muttrc
|
||||||
macro index,pager ip '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/1-david.julien@posteo.net.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@posteo.net"
|
macro index,pager ip '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/1-david.julien@posteo.net.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@posteo.net"
|
||||||
macro index,pager is '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@ens-lyon.fr"
|
macro index,pager is '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@ens-lyon.fr"
|
||||||
macro index,pager in '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@etu.univ-nantes.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@etu.univ-nantes.fr"
|
macro index,pager in '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@univ-nantes.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@univ-nantes.fr"
|
||||||
macro index,pager im '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/3-david.julien@mailo.com.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@mailto.com"
|
macro index,pager im '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/3-david.julien@mailo.com.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@mailto.com"
|
||||||
source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@etu.univ-nantes.fr.muttrc
|
source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@univ-nantes.fr.muttrc
|
||||||
|
@ -81,7 +81,9 @@ macro index A "<limit>all\n" "show all messages (undo limit)"
|
|||||||
# Sidebar mappings
|
# Sidebar mappings
|
||||||
set sidebar_visible = yes
|
set sidebar_visible = yes
|
||||||
set sidebar_width = 20
|
set sidebar_width = 20
|
||||||
set sidebar_short_path = yes
|
set sidebar_short_path
|
||||||
|
set sidebar_folder_indent
|
||||||
|
set sidebar_indent_string = " └ "
|
||||||
set sidebar_next_new_wrap = yes
|
set sidebar_next_new_wrap = yes
|
||||||
set mail_check_stats
|
set mail_check_stats
|
||||||
set sidebar_format = '%D%?F? [%F]?%* %?N?%N/? %?S?%S?'
|
set sidebar_format = '%D%?F? [%F]?%* %?N?%N/? %?S?%S?'
|
||||||
|
@ -55,7 +55,7 @@ end
|
|||||||
|
|
||||||
-- nvim-cmp supports additional completion capabilities
|
-- nvim-cmp supports additional completion capabilities
|
||||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities)
|
capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities)
|
||||||
|
|
||||||
local servers = { "clangd", "sumneko_lua", "texlab" }
|
local servers = { "clangd", "sumneko_lua", "texlab" }
|
||||||
lsp_installer.setup {
|
lsp_installer.setup {
|
||||||
|
14
.gitignore
vendored
14
.gitignore
vendored
@ -4,22 +4,28 @@
|
|||||||
!/.xprofile
|
!/.xprofile
|
||||||
!/.zshenv
|
!/.zshenv
|
||||||
|
|
||||||
|
!/.local
|
||||||
!/.local/bin/
|
!/.local/bin/
|
||||||
!/local/src/
|
!/.local/src/
|
||||||
!/.local/state/
|
/.local/lib/
|
||||||
|
/.local/include/
|
||||||
|
/.local/share/
|
||||||
|
/.local/state/
|
||||||
|
|
||||||
!/.config/
|
!/.config/
|
||||||
/.config/dconf/
|
/.config/dconf/
|
||||||
/.config/font-manager/
|
/.config/font-manager/
|
||||||
/.config/fontconfig/
|
/.config/fontconfig/
|
||||||
/.config/gnupg/
|
/.config/gnupg/*
|
||||||
!/.config/gnupg/gpg-agent.conf
|
!/.config/gnupg/gpg-agent.conf
|
||||||
/.config/libreoffice/
|
/.config/libreoffice/
|
||||||
/.config/mpd/
|
/.config/mpd/*
|
||||||
!/.config/mpd/mpd.conf
|
!/.config/mpd/mpd.conf
|
||||||
/.config/mutt/.mailsynclastrun
|
/.config/mutt/.mailsynclastrun
|
||||||
/.config/nvim/plugin/
|
/.config/nvim/plugin/
|
||||||
/.config/pulse/
|
/.config/pulse/
|
||||||
|
/.config/transmission-daemon/*
|
||||||
|
/.config/transmission-daemon/settings.json
|
||||||
/.config/zsh/.zcompdump
|
/.config/zsh/.zcompdump
|
||||||
|
|
||||||
/**/*.log
|
/**/*.log
|
||||||
|
@ -40,7 +40,7 @@ messageinfo() {
|
|||||||
syncandnotify() {
|
syncandnotify() {
|
||||||
acc="$(echo "$account" | sed "s/.*\///")"
|
acc="$(echo "$account" | sed "s/.*\///")"
|
||||||
mbsync "$acc"
|
mbsync "$acc"
|
||||||
new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc/*/new/ -type f -newer "${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun" | grep -iv "trash" 2>/dev/null)"
|
new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc -path */new/* -type f -newer "${XDG_STATE_HOME:-$HOME/.local/state}/mailsynclastrun" | grep -iv "trash" 2>/dev/null)"
|
||||||
newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l)
|
newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l)
|
||||||
if [ "$newcount" -gt "0" ]; then
|
if [ "$newcount" -gt "0" ]; then
|
||||||
for file in $new; do
|
for file in $new; do
|
||||||
@ -66,4 +66,4 @@ wait
|
|||||||
notmuch new 2>/dev/null
|
notmuch new 2>/dev/null
|
||||||
|
|
||||||
#Create a touch file that indicates the time of the last run of mailsync
|
#Create a touch file that indicates the time of the last run of mailsync
|
||||||
touch "${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun"
|
touch "${XDG_STATE_HOME:-$HOME/.local/state}/mailsynclastrun"
|
||||||
|
@ -13,15 +13,16 @@
|
|||||||
unread=""
|
unread=""
|
||||||
for acc in $(ls "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/)
|
for acc in $(ls "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/)
|
||||||
do
|
do
|
||||||
new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc/*/new/ -type f | grep -iv "trash" | wc -l 2>/dev/null)"
|
new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc -path */new/* -type f | grep -iv "trash" | wc -l 2>/dev/null)"
|
||||||
if [ $new -gt 0 ]; then
|
if [ $new -gt 0 ]; then
|
||||||
|
box=""
|
||||||
[ -n "$(echo "$acc" | sed -n '/@centrale/p')" ] && box=""
|
[ -n "$(echo "$acc" | sed -n '/@centrale/p')" ] && box=""
|
||||||
[ -n "$(echo "$acc" | sed -n '/@etu/p')" ] && box=""
|
[ -n "$(echo "$acc" | sed -n '/@univ/p')" ] && box=""
|
||||||
[ -n "$(echo "$acc" | sed -n '/@mailo/p')" ] && box=""
|
[ -n "$(echo "$acc" | sed -n '/@mailo/p')" ] && box=""
|
||||||
[ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box=""
|
[ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box=""
|
||||||
unread="$unread/$box$new"
|
unread="$unread/$box$new"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
[ -n "$unread" ] && unread="($(echo "$unread" | cut -c 2-))" || exit
|
[ -n "$unread" ] && unread="$(echo "$unread" | cut -c 2-)" || exit
|
||||||
|
|
||||||
printf " %s%s " "$unread" "$icon"
|
printf " %s%s " "$unread" "$icon"
|
||||||
|
Reference in New Issue
Block a user