From fd581e368cdc26231605f380410c60c81e495934 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sun, 18 Jul 2021 04:12:52 +0430 Subject: update for neomutt --- .config/ranger/rc.conf | 2 + .mutt/.muttrc | 303 +++++++++++++++++++++++++++++++++++++++++++++ .mutt/account.gmail | 17 +++ .mutt/account.self | 17 +++ .muttrc | 327 ------------------------------------------------- .zshrc | 5 +- 6 files changed, 342 insertions(+), 329 deletions(-) create mode 100644 .mutt/.muttrc create mode 100644 .mutt/account.gmail create mode 100644 .mutt/account.self delete mode 100644 .muttrc diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf index dc9143a..2daef2f 100644 --- a/.config/ranger/rc.conf +++ b/.config/ranger/rc.conf @@ -290,6 +290,8 @@ set global_inode_type_filter # should be 'false' during start-up, but you can toggle it by pressing F. set freeze_files false +default_linemode devicons + # =================================================================== # == Local Options # =================================================================== diff --git a/.mutt/.muttrc b/.mutt/.muttrc new file mode 100644 index 0000000..1d60b8e --- /dev/null +++ b/.mutt/.muttrc @@ -0,0 +1,303 @@ +# vim: filetype=neomuttrc +set imap_keepalive = 900 +set timeout=60 +set move = no + +folder-hook 'account.gmail' 'source ~/.mutt/account.gmail' +folder-hook 'account.self' 'source ~/.mutt/account.self' + +# default account +source ~/.mutt/account.gmail + +macro index 'source ~/.mutt/account.self!' +macro index 'source ~/.mutt/account.gmail!' + +# macros +macro index A "T~N;WNT~O;WO\CT~T” “mark all messages read" + +# gives us all the mailboxes in the sidebar +set imap_check_subscribed + +set editor = "vim" + +# folder-hook gmail/important "color status J_black color136" +#set imap_list_subscribed=yes +set dsn_notify="failure,delay" +set dsn_return="hdrs" + +set sidebar_visible = yes +set mail_check_stats = yes +set sidebar_divider_char = ' |' +set sidebar_width = 40 +set sidebar_short_path = yes +set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" +set sidebar_folder_indent = yes +set sidebar_indent_string = "...." + +#subscriptions +subscribe ^cfe-dev@lists.llvm.org$ +subscribe ^llvm-dev@lists.llvm.org$ +subscribe -group lua lua-l@lists.lua.org +subscribe -group cygwin cygwin@cygwin.com + +color error color196 default # message line error text +color tilde color81 default # vi-like tildes marking blank lines +color message color82 default +color markers brightcolor232 color222 # wrapped-line /^\+/ markers +color attachment brightcolor165 default # attachment headers +color search color232 color154 # search patterns in pager +color status brightcolor232 color39 +color indicator brightcolor232 color33 # selected email in index +color tree brightcolor165 default # arrow in threads (`-->') + +# basic monochrome screen +mono bold bold +mono underline underline +mono indicator reverse +mono error bold +mono header bold "^(From|Subject|Date|To|Cc|Bcc):" +mono quoted bold + +# index ---------------------------------------------------------------- + +color index color160 default "~A" # all messages +color index color166 default "~E" # expired messages +color index color28 default "~N" # new messages +color index color22 default "~O" # old messages +color index color244 default "~R" # read messages +color index color38 default "~Q" # messages that have been replied to +color index color31 default "~U" # unread messages +color index color29 default "~U~$" # unread, unreferenced messages +color index color222 default "~v" # messages part of a collapsed thread +color index color222 default "~P" # messages from me +color index color39 default "~p!~F" # messages to me +color index color39 default "~N~p!~F" # new messages to me +color index color39 default "~U~p!~F" # unread messages to me +color index color244 default "~R~p!~F" # messages to me +color index brightcolor165 default "~F" # flagged messages +color index brightcolor165 default "~F~p" # flagged messages to me +color index brightcolor165 default "~N~F" # new flagged messages +color index brightcolor165 default "~N~F~p" # new flagged messages to me +color index brightcolor165 default "~U~F~p" # new flagged messages to me +color index color232 color196 "!~N ~D" # deleted messages +color index color232 color196 "~N ~D" # deleted new messages +color index color244 default "~v~(!~N)" # collapsed thread with no unread +color index color81 default "~v~(~N)" # collapsed thread with some unread +color index color81 default "~N~v~(~N)" # collapsed thread with unread parent +# statusbg used to indicated flagged when foreground color shows other status +# for collapsed thread +color index color160 default "~v~(~F)!~N" # collapsed thread with flagged, no unread +color index color81 default "~v~(~F~N)" # collapsed thread with some unread & flagged +color index color81 default "~N~v~(~F~N)" # collapsed thread with unread parent & flagged +color index color81 default "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged +color index color39 default "~v~(~p)" # collapsed thread with unread parent, no unread inside, some to me directly +color index color81 color160 "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial) +color index color222 default "~T" # tagged messages +color index brightcolor222 default "~T~F" # tagged, flagged messages +color index brightcolor222 default "~T~N" # tagged, new messages +color index brightcolor222 default "~T~U" # tagged, unread messages + +color index red default "~D(!~p|~p)" # deleted +color index color111 default "~F" # flagged +color index brightred default "~=" # duplicate messages +color index color22 default "~A!~N!~T!~p!~Q!~F!~D!~P" # the rest +color index brightgreen default "~A~N!~T!~p!~Q!~F!~D" # the rest, new +color index black red "~D" # deleted messages +color index yellow default "~(~N)" # messages in threads with some unread +color index green default "~S" # superseded messages +color index yellow default "~T" # tagged messages +color index brightred red "~=" # duplicated messages + +# message headers ------------------------------------------------------ + +color hdrdefault default default +color header color69 default "^ARC-" +color header color25 default "^Received" +color header color30 default "^X-" +color header color36 default "^List-" +color header color63 default "^MIME-" +color header color99 default "^Content-" +color header color209 default "^DKIM" +color header color132 default "^Authentication" +color header color131 default "^User-Agent" +color header color27 default "^(To|Cc|Bcc)" +color header color28 default "^(From)" +color header color6 default "^(Date)" +color header color22 default "^(Subject)" +unignore * + +# body ----------------------------------------------------------------- + +color quoted color39 default +color quoted1 color165 default +color quoted2 color35 default +color quoted3 color222 default +color quoted4 color166 default +color quoted5 color108 default +color quoted6 color105 default +color quoted7 color100 default +color quoted8 color39 default +color quoted9 color31 default +color signature color81 default # everything below /^--\s*$/ + +color bold color255 default +color underline color208 default +color normal color244 default + +## pgp + +color body color160 default "(BAD signature)" +color body color39 default "(Good signature)" +color body color235 default "^gpg: Good signature .*" +color body color241 default "^gpg: " +color body color241 color160 "^gpg: BAD signature from.*" +color body color30 default "^# \.*" +color body color31 default "^## \.*" +color body color32 default "^### \.*" +color body color33 default "^#### \.*" +color body color29 default "^(\t| )*(-|\\*) \.*" +mono body bold "^gpg: Good signature" +mono body bold "^gpg: BAD signature from.*" + +# yes, an insane URL regex +color body brightcolor39 default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" +# and a heavy handed email regex +color body brightcolor39 default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])" + +# simplified regex for URL & email +#color body magenta default "(ftp|https?|gopher|news|telnet|finger)://[^ \"\t\r\n]+" +#color body magenta default "[-a-z_0-9.]+@[-a-z_0-9.]+" + +#highlight the mail subject and from in the body as well +color body color28 default "(^Subject:.*$)" +color body color27 default "(^From:.*$)" + +# _underline_ +color body blue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" +mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" +# /italic/ (Sometimes gets directory names) +color body blue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" +mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" + +# Color if the attachment is autoviewed +color attach_headers brightgreen default "Autoview" + +# Color only the brackets around the headers +color attach_headers brightyellow default "^\\[--" +color attach_headers brightyellow default "--]$" + +# Color the mime type and the size +color attach_headers green default "Type: [a-z]+/[a-z0-9\-]+" +color attach_headers green default "Size: [0-9\.]+[KM]" + +# Color GPGME signature checks +color attach_headers brightgreen default "Good signature from.*" +color attach_headers brightred default "Bad signature from.*" +color attach_headers brightred default "BAD signature from.*" +color attach_headers brightred default "Note: This key has expired!" +color attach_headers brightmagenta default "Problem signature from.*" +color attach_headers brightmagenta default "WARNING: This key is not certified with a trusted signature!" +color attach_headers brightmagenta default " There is no indication that the signature belongs to the owner." +color attach_headers brightmagenta default "can't handle these multiple signatures" +color attach_headers brightmagenta default "signature verification suppressed" +color attach_headers brightmagenta default "invalid node with packet of type" +### +color index_collapsed blue default +color index_date color31 default +color index_label color196 default +color index_number color63 default +color index_size color37 default +color index_tags color27 default +#color index_subject color166 default +#color index_tag color165 default +### +color prompt blue cyan + +color sidebar_divider brightcolor39 default +color sidebar_flagged red default +color sidebar_highlight color28 default +color sidebar_indicator cyan default +color sidebar_new color24 default +color sidebar_ordinary color25 default +color sidebar_spoolfile color38 default +color sidebar_unread color99 default + +color progress white blue +color index_flags default red '~F' +# vi: ft=muttrc ts=4 sw=4 sts=4 et +set status_format='-%r-NeoMutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? \ +Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---' +set index_format='%4C %D %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s' +set sort=threads +set sort_aux=last-date-received +color status color39 default +color status brightred white '(New|Del|Flag):[0-9]+' +color status brightred default '\([^)]+/[^)]+\)' +color status default default '\(threads/last-date-received\)' +color status red default '\[([^]]+)\]' 1 +color status brightwhite default 'NeoMutt: ([^ ]+)' 1 + +set mailcap_path = ~/.mutt/mailcap +auto_view text/html + +#set pager_index_lines=10 + +bind index,pager \CP sidebar-prev +bind index,pager \CN sidebar-next +bind index,pager \CO sidebar-open +bind pager j next-line +bind pager k previous-line +bind pager l view-attachments +bind index l display-message +bind browser l select-entry +bind index h noop +bind browser h goto-parent +bind browser gg top-page +bind pager g noop +bind pager gg top +bind pager G bottom +bind index g noop +bind index gg first-entry +bind browser G bottom-page +bind index G last-entry +bind index D delete-message +bind index U undelete-message +bind index,pager R group-reply +bind attach,browser,pager,index \CF next-page +bind attach,browser,pager,index \CB previous-page +bind attach,browser,pager,index \Cu half-up +bind attach,browser,pager,index \Cd half-down +bind index H top-page +bind index M middle-page +bind index L bottom-page + +# color body brightwhite default "^[[:space:]].*" +color body yellow default "^(diff).*" +color body white default "^[\-\-\-].*" +color body white default "^[\+\+\+].*" +color body green default "^[\+].*" +color body red default "^[\-].*" +color body brightblue default "[@@].*" +color body brightwhite default "^(\s).*" +color body cyan default "^(Signed-off-by).*" +color body cyan default "^(Docker-DCO-1.1-Signed-off-by).*" +color body brightwhite default "^(Cc)" +color body yellow default "^diff \-.*" +color body brightwhite default "^index [a-f0-9].*" +color body brightblue default "^---$" +color body white default "^\-\-\- .*" +color body white default "^[\+]{3} .*" +color body green default "^[\+][^\+]+.*" +color body red default "^\-[^\-]+.*" +color body brightblue default "^@@ .*" +color body green default "LGTM" +color body brightmagenta default "-- Commit Summary --" +color body brightmagenta default "-- File Changes --" +color body brightmagenta default "-- Patch Links --" +color body green default "^Merged #.*" +color body red default "^Closed #.*" +color body brightblue default "^Reply to this email.*" + +# set pager_format=" %n %zc  %T %s%*  %{!%d %b · %H:%M} %?X?  %X ? %P  " +# set vfolder_format = " %N %?n?%3n& ? %8m  · %f" +# set attach_format = "%u%D  %T%-75.75d %?T?%& ? %5s · %m/%M" diff --git a/.mutt/account.gmail b/.mutt/account.gmail new file mode 100644 index 0000000..f3fc94f --- /dev/null +++ b/.mutt/account.gmail @@ -0,0 +1,17 @@ +# vim: filetype=neomuttrc + +unmailboxes * +set from = 'thabogre@gmail.com' +set imap_user = 'thabogre@gmail.com' +source "gpg -d ~/scripts/mail.gmail.pass.gpg |" +set smtp_url = 'smtp://thabogre@smtp.gmail.com:587/' +set realname = 'farzad sadeghi' +set folder = 'imaps://imap.gmail.com:993' +set spoolfile = '+Inbox' +set postponed = '+Drafts' +set record = '+Sent' +set trash = '+Trash' +set header_cache = ~/.mutt/gmail/cache/headers +set message_cachedir = ~/.mutt/gmail/cache/bodies +set certificate_file = ~/.mutt/gmail/certificates +mailboxes "+Inbox" "+Drafts" "+Sent" "+Trash" diff --git a/.mutt/account.self b/.mutt/account.self new file mode 100644 index 0000000..a1ff604 --- /dev/null +++ b/.mutt/account.self @@ -0,0 +1,17 @@ +# vim: filetype=neomuttrc + +unmailboxes * +set from = 'devi@terminaldweller.com' +set imap_user = 'devi@terminaldweller.com' +source "gpg -d ~/scripts/mail.self.pass.gpg |" +set smtp_url = 'smtp://mail.terminaldweller.com:587/' +set realname = 'farzad sadeghi' +set folder = 'imaps://mail.terminaldweller.com:993' +set spoolfile = '+INBOX' +set postponed = '+Drafts' +set record = '+Sent' +set trash = '+Trash' +set header_cache = ~/.mutt/self/cache/headers +set message_cachedir = ~/.mutt/self/cache/bodies +set certificate_file = ~/.mutt/self/certificates +mailboxes "+INBOX" "+Drafts" "+Sent" "+Trash" diff --git a/.muttrc b/.muttrc deleted file mode 100644 index 0869ecd..0000000 --- a/.muttrc +++ /dev/null @@ -1,327 +0,0 @@ -# vim: filetype=neomuttrc -set from = 'thabogre@gmail.com' -set realname = 'farzad sadeghi' -set imap_user = 'thabogre@gmail.com' -source "gpg -d ~/scripts/imap.pass.gpg |" -#set sidebar_visible = yes - -# macros -macro index A "T~N;WNT~O;WO\CT~T” “mark all messages read" - -# REMOTE GMAIL FOLDERS -set folder = 'imaps://imap.gmail.com:993' -set spoolfile = '+Inbox' -set postponed = '+Drafts' -set record = '+Sent' -set trash = '+Trash' - -# gives us all the mailboxes in the sidebar -set imap_check_subscribed - -#LOCAL FOLDERS FOR CACHED HEADERS AND CERTIFICATES -set header_cache = ~/.mutt/cache/headers -#set header_cache =\home\bloodstalker\.mutt\cache\headers -set message_cachedir = ~/.mutt/cache/bodies -set certificate_file = ~/.mutt/certificates - -#SMTP SETTINGS -set smtp_url = 'smtp://thabogre@smtp.gmail.com:587/' - -set editor = "vim" - -#SECURING -set move = no -set imap_keepalive = 900 - -set timeout=30 -folder-hook gmail/important "color status J_black color136 " -#set imap_list_subscribed=yes -set dsn_notify="failure,delay" -set dsn_return="hdrs" - -set sidebar_visible = yes -set mail_check_stats = yes -set sidebar_divider_char = ' |' -set sidebar_visible = yes -set sidebar_width = 40 -set sidebar_short_path = yes -set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" -set sidebar_folder_indent = yes -set sidebar_indent_string = "...." - -#subscriptions -subscribe ^cfe-dev@lists.llvm.org$ -subscribe ^llvm-dev@lists.llvm.org$ -subscribe -group lua lua-l@lists.lua.org -subscribe -group cygwin cygwin@cygwin.com - -# for background in 16 color terminal, valid background colors include: -# base03, bg, black, any of the non brights - -# style notes: -# when bg=235, that's a highlighted message -# normal bg=233 - -# basic colors --------------------------------------------------------- -# color normal brightyellow default -color error color196 default # message line error text -color tilde color81 default # vi-like tildes marking blank lines -color message color82 default -color markers brightcolor232 color222 # wrapped-line /^\+/ markers -color attachment brightcolor165 default # attachment headers -color search color232 color154 # search patterns in pager -color status brightcolor232 color39 -color indicator brightcolor232 color33 # selected email in index -color tree brightcolor165 default # arrow in threads (`-->') - -# basic monochrome screen -mono bold bold -mono underline underline -mono indicator reverse -mono error bold -mono header bold "^(From|Subject|Date|To|Cc|Bcc):" -mono quoted bold - -# index ---------------------------------------------------------------- - -color index color160 default "~A" # all messages -color index color166 default "~E" # expired messages -color index color28 default "~N" # new messages -color index color22 default "~O" # old messages -color index color244 default "~R" # read messages -color index color38 default "~Q" # messages that have been replied to -color index color31 default "~U" # unread messages -color index color29 default "~U~$" # unread, unreferenced messages -color index color222 default "~v" # messages part of a collapsed thread -color index color222 default "~P" # messages from me -color index color39 default "~p!~F" # messages to me -color index color39 default "~N~p!~F" # new messages to me -color index color39 default "~U~p!~F" # unread messages to me -color index color244 default "~R~p!~F" # messages to me -color index brightcolor165 default "~F" # flagged messages -color index brightcolor165 default "~F~p" # flagged messages to me -color index brightcolor165 default "~N~F" # new flagged messages -color index brightcolor165 default "~N~F~p" # new flagged messages to me -color index brightcolor165 default "~U~F~p" # new flagged messages to me -color index color232 color196 "!~N ~D" # deleted messages -color index color232 color196 "~N ~D" # deleted new messages -color index color244 default "~v~(!~N)" # collapsed thread with no unread -color index color81 default "~v~(~N)" # collapsed thread with some unread -color index color81 default "~N~v~(~N)" # collapsed thread with unread parent -# statusbg used to indicated flagged when foreground color shows other status -# for collapsed thread -color index color160 default "~v~(~F)!~N" # collapsed thread with flagged, no unread -color index color81 default "~v~(~F~N)" # collapsed thread with some unread & flagged -color index color81 default "~N~v~(~F~N)" # collapsed thread with unread parent & flagged -color index color81 default "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged -color index color39 default "~v~(~p)" # collapsed thread with unread parent, no unread inside, some to me directly -color index color81 color160 "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial) -color index color222 default "~T" # tagged messages -color index brightcolor222 default "~T~F" # tagged, flagged messages -color index brightcolor222 default "~T~N" # tagged, new messages -color index brightcolor222 default "~T~U" # tagged, unread messages - -color index red default "~D(!~p|~p)" # deleted -color index color111 default "~F" # flagged -color index brightred default "~=" # duplicate messages -color index color22 default "~A!~N!~T!~p!~Q!~F!~D!~P" # the rest -color index brightgreen default "~A~N!~T!~p!~Q!~F!~D" # the rest, new -color index black red "~D" # deleted messages -color index yellow default "~(~N)" # messages in threads with some unread -color index green default "~S" # superseded messages -color index yellow default "~T" # tagged messages -color index brightred red "~=" # duplicated messages - -# message headers ------------------------------------------------------ - -color hdrdefault default default -color header color69 default "^ARC-" -color header color25 default "^Received" -color header color30 default "^X-" -color header color36 default "^List-" -color header color63 default "^MIME-" -color header color99 default "^Content-" -color header color209 default "^DKIM" -color header color132 default "^Authentication" -color header color131 default "^User-Agent" -color header color27 default "^(To|Cc|Bcc)" -color header color28 default "^(From)" -color header color6 default "^(Date)" -color header color22 default "^(Subject)" -unignore * - -# body ----------------------------------------------------------------- - -color quoted color39 default -color quoted1 color165 default -color quoted2 color35 default -color quoted3 color222 default -color quoted4 color166 default -color quoted5 color108 default -color quoted6 color105 default -color quoted7 color100 default -color quoted8 color39 default -color quoted9 color31 default -color signature color81 default # everything below /^--\s*$/ - -color bold color255 default -color underline color208 default -color normal color244 default - -## pgp - -color body color160 default "(BAD signature)" -color body color39 default "(Good signature)" -color body color235 default "^gpg: Good signature .*" -color body color241 default "^gpg: " -color body color241 color160 "^gpg: BAD signature from.*" -color body color30 default "^# \.*" -color body color31 default "^## \.*" -color body color32 default "^### \.*" -color body color33 default "^#### \.*" -color body color29 default "^(\t| )*(-|\\*) \.*" -mono body bold "^gpg: Good signature" -mono body bold "^gpg: BAD signature from.*" - -# yes, an insane URL regex -color body brightcolor39 default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" -# and a heavy handed email regex -color body brightcolor39 default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])" - -# simplified regex for URL & email -#color body magenta default "(ftp|https?|gopher|news|telnet|finger)://[^ \"\t\r\n]+" -#color body magenta default "[-a-z_0-9.]+@[-a-z_0-9.]+" - -#highlight the mail subject and from in the body as well -color body color28 default "(^Subject:.*$)" -color body color27 default "(^From:.*$)" - -# _underline_ -color body blue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" -mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" -# /italic/ (Sometimes gets directory names) -color body blue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" -mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" - -# Color if the attachment is autoviewed -color attach_headers brightgreen default "Autoview" - -# Color only the brackets around the headers -color attach_headers brightyellow default "^\\[--" -color attach_headers brightyellow default "--]$" - -# Color the mime type and the size -color attach_headers green default "Type: [a-z]+/[a-z0-9\-]+" -color attach_headers green default "Size: [0-9\.]+[KM]" - -# Color GPGME signature checks -color attach_headers brightgreen default "Good signature from.*" -color attach_headers brightred default "Bad signature from.*" -color attach_headers brightred default "BAD signature from.*" -color attach_headers brightred default "Note: This key has expired!" -color attach_headers brightmagenta default "Problem signature from.*" -color attach_headers brightmagenta default "WARNING: This key is not certified with a trusted signature!" -color attach_headers brightmagenta default " There is no indication that the signature belongs to the owner." -color attach_headers brightmagenta default "can't handle these multiple signatures" -color attach_headers brightmagenta default "signature verification suppressed" -color attach_headers brightmagenta default "invalid node with packet of type" -### -color index_collapsed blue default -color index_date color31 default -color index_label color196 default -color index_number color63 default -color index_size color37 default -color index_tags color27 default -#color index_subject color166 default -#color index_tag color165 default -### -color prompt blue cyan - -color sidebar_divider brightcolor39 default -color sidebar_flagged red default -color sidebar_highlight color28 default -color sidebar_indicator cyan default -color sidebar_new color24 default -color sidebar_ordinary color25 default -color sidebar_spoolfile color38 default -color sidebar_unread color99 default - -color progress white blue -color index_flags default red '~F' -# vi: ft=muttrc ts=4 sw=4 sts=4 et -set status_format='-%r-NeoMutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? \ -Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---' -set index_format='%4C %D %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s' -set sort=threads -set sort_aux=last-date-received -color status color39 default -color status brightred white '(New|Del|Flag):[0-9]+' -color status brightred default '\([^)]+/[^)]+\)' -color status default default '\(threads/last-date-received\)' -color status red default '\[([^]]+)\]' 1 -color status brightwhite default 'NeoMutt: ([^ ]+)' 1 - -set mailcap_path = ~/.mutt/mailcap -auto_view text/html - -#set pager_index_lines=10 - -bind index,pager \CP sidebar-prev -bind index,pager \CN sidebar-next -bind index,pager \CO sidebar-open -bind pager j next-line -bind pager k previous-line -bind pager l view-attachments -bind index l display-message -bind browser l select-entry -bind index h noop -bind browser h goto-parent -bind browser gg top-page -bind pager g noop -bind pager gg top -bind pager G bottom -bind index g noop -bind index gg first-entry -bind browser G bottom-page -bind index G last-entry -bind index D delete-message -bind index U undelete-message -bind index,pager R group-reply -bind attach,browser,pager,index \CF next-page -bind attach,browser,pager,index \CB previous-page -bind attach,browser,pager,index \Cu half-up -bind attach,browser,pager,index \Cd half-down -bind index H top-page -bind index M middle-page -bind index L bottom-page - -# color body brightwhite default "^[[:space:]].*" -color body yellow default "^(diff).*" -color body white default "^[\-\-\-].*" -color body white default "^[\+\+\+].*" -color body green default "^[\+].*" -color body red default "^[\-].*" -color body brightblue default "[@@].*" -color body brightwhite default "^(\s).*" -color body cyan default "^(Signed-off-by).*" -color body cyan default "^(Docker-DCO-1.1-Signed-off-by).*" -color body brightwhite default "^(Cc)" -color body yellow default "^diff \-.*" -color body brightwhite default "^index [a-f0-9].*" -color body brightblue default "^---$" -color body white default "^\-\-\- .*" -color body white default "^[\+]{3} .*" -color body green default "^[\+][^\+]+.*" -color body red default "^\-[^\-]+.*" -color body brightblue default "^@@ .*" -color body green default "LGTM" -color body brightmagenta default "-- Commit Summary --" -color body brightmagenta default "-- File Changes --" -color body brightmagenta default "-- Patch Links --" -color body green default "^Merged #.*" -color body red default "^Closed #.*" -color body brightblue default "^Reply to this email.*" - -# set pager_format=" %n %zc  %T %s%*  %{!%d %b · %H:%M} %?X?  %X ? %P  " -# set vfolder_format = " %N %?n?%3n& ? %8m  · %f" -# set attach_format = "%u%D  %T%-75.75d %?T?%& ? %5s · %m/%M" diff --git a/.zshrc b/.zshrc index ce8c72b..262c3c8 100644 --- a/.zshrc +++ b/.zshrc @@ -45,8 +45,8 @@ alias isup="ps -aux | grep " alias ipfsd="ipfs daemon > /dev/null 2>&1 &; disown" alias i3rc="vim ~/scripts/.config/i3/config" alias fixi3rc="cp ~/scripts/.config/i3/config ~/.config/i3/config && i3-msg restart" -alias muttrc="vim ~/scripts/.muttrc" -alias fixmuttrc="cp ~/scripts/.muttrc ~/.muttrc" +alias muttrc="vim ~/scripts/.mutt/.muttrc" +alias fixmuttrc="cp ~/scripts/.mutt/.muttrc ~/.muttrc" alias dropcmake="cp ~/scripts/makefilec ./makefile" alias dropcppmake="cp ~/scripts/makefilecpp ./makefile" alias droppy="cp ~/scripts/python/main.py ./main.py" @@ -141,6 +141,7 @@ alias fixproxychainsrc="cp ~/scripts/.proxychains/proxychains.conf ~/.proxychain alias zgit="proxychains git" alias socks5z="ssh -N -D 9998 -o ExitOnForwardFailure=yes -l pi 192.168.1.108" alias socks5ir="ssh -N -D 9997 -o ExitOnForwardFailure=yes -l ubuntu -p 1022 terminaldweller.com" +alias cloud_one="ssh 130.185.121.80 -l ubuntu -p 1022" #autosuggest ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#5f5fff,bg=#000000,bold" -- cgit v1.2.3