Compare commits

...

13 Commits

Author SHA1 Message Date
Petr Nyc
84741f68ed notmuch - notmuch-hello & retag-email changes 2026-01-21 21:48:34 +01:00
Petr Nyc
36635268be notmuch-hello config 2026-01-21 21:46:26 +01:00
Petr Nyc
cc5e1a21e3 homebrew config 2026-01-21 14:40:08 +01:00
Petr Nyc
558efec514 notmuch hello config 2026-01-19 22:28:48 +01:00
Petr Nyc
b789f4afe9 notmuch email tagging 0.2 2026-01-19 22:28:48 +01:00
Petr Nyc
a3a021ee18 notmuch email tagging 0.1 2026-01-19 22:26:32 +01:00
Petr Nyc
3c76055b05 notmuch tweaks 2026-01-19 21:10:13 +01:00
Petr Nyc
f4e8efeb8f added conda layer 2026-01-18 21:13:10 +01:00
Petr Nyc
6aef629cc2 dockerfile and terraform syntax checking 2026-01-18 17:26:59 +01:00
Petr Nyc
d80bca7f00 Syntax checking for python 2026-01-18 12:20:03 +01:00
Petr Nyc
ab11fc8566 custom mods 2026-01-18 12:20:03 +01:00
Petr Nyc
516f5cd88a magit-status-dotfiles function bug fix 2026-01-18 12:20:03 +01:00
Petr Nyc
866eed3a57 commented out org-calendar - doesn't work to my satisfaction 2026-01-18 12:20:03 +01:00
4 changed files with 625 additions and 89 deletions

View File

@@ -37,11 +37,14 @@ This function should only modify configuration layer settings."
shell shell
yaml yaml
notmuch notmuch
;; themes-megapack themes-megapack
nginx nginx
toml toml
html html
python (python :variables
python-backend 'lsp
python-lsp-server 'pyright
)
javascript javascript
pandoc pandoc
;; ---------------------------------------------------------------- ;; ----------------------------------------------------------------
@@ -77,8 +80,10 @@ This function should only modify configuration layer settings."
syntax-checking syntax-checking
;; version-control ;; version-control
treemacs treemacs
docker (docker :variables docker-dockerfile-backend 'lsp)
terraform (terraform :variables terraform-backend 'lsp)
(conda :variables
conda-anaconda-home "/opt/homebrew/Caskroom/miniconda/base")
) )
@@ -503,7 +508,7 @@ It should only modify the values of Spacemacs settings."
;; List of search tool executable names. Spacemacs uses the first installed ;; List of search tool executable names. Spacemacs uses the first installed
;; tool of the list. Supported tools are `rg', `ag', `pt', `ack' and `grep'. ;; tool of the list. Supported tools are `rg', `ag', `pt', `ack' and `grep'.
;; (default '("rg" "ag" "pt" "ack" "grep")) ;; (default '("rg" "ag" "pt" "ack" "grep"))
dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep") dotspacemacs-search-tools '("rg" "ag" "ack" "grep")
;; The backend used for undo/redo functionality. Possible values are ;; The backend used for undo/redo functionality. Possible values are
;; `undo-fu', `undo-redo' and `undo-tree' see also `evil-undo-system'. ;; `undo-fu', `undo-redo' and `undo-tree' see also `evil-undo-system'.
@@ -624,7 +629,9 @@ before packages are loaded."
;; email config ;; email config
;; the saved command is a work-around for not working address completion ;; the saved command is a work-around for not working address completion
(setq notmuch-show-logo nil (setq notmuch-show-logo nil
notmuch-search-oldest-first nil notmuch-search-oldest-first nil ;; new email on top
notmuch-column-control 1.0 ;; just one columnt for searches
notmuch-hello-insert-recent-searches nil ;; don't display recent searches in notmuch-helo
notmuch-address-command "/Users/jetpac/bin/notmuch-address" notmuch-address-command "/Users/jetpac/bin/notmuch-address"
;; these are default ;; these are default
@@ -762,6 +769,60 @@ before packages are loaded."
;; / email config ;; / email config
;; LSP config
;; General LSP tuning - defaults
;; (setq lsp-idle-delay 0.5)
;; (setq lsp-log-io nil)
;; (setq gc-cons-threshold 100000000)
;; (setq read-process-output-max (* 1024 1024)) ;; 1MB
;; Use flycheck for diagnostics (Spacemacs default)
;; (setq lsp-diagnostics-provider :flycheck)
;; Reduce file watcher overhead (important for Terraform repos)
;; (setq lsp-file-watch-threshold 5000)
;; for python, install ruff and pylsp:
;; Python CONFIG
;; brew install ruff pylsp pyright basedpyright
;; 1. Use Basedpyright instead of standard Pyright
(setq lsp-pyright-langserver-command "basedpyright")
;; 2. Enable Ruff support (requires ruff to be in your PATH)
;; This tells lsp-mode to use the Ruff server for linting/formatting
(setq lsp-pylsp-plugins-ruff-enabled t)
;; Spacemacs already uses deferred loading, but this ensures it
;; (setq lsp-auto-configure t) ;; this is already default
;; /Python CONFIG
;; enable lsp mode for shells, needs to be deferred
;; otherwise it locks up emacs startup
(add-hook 'sh-mode-hook #'lsp-deferred)
;; Chain mode-specific checkers (Hadolint, TFLint) to run after LSP.
;; We use `lsp-managed-mode-hook` to ensure the `lsp` checker is fully
;; defined before modifying its chain, preventing "lsp is not a valid
;; syntax checker" errors during startup.
(defun jp/lsp-flycheck-chaining ()
"Chain specific checkers to LSP based on the current mode."
(cond
;; Dockerfile: LSP -> Hadolint
((derived-mode-p 'dockerfile-mode)
(flycheck-add-next-checker 'lsp 'dockerfile-hadolint))
;; Terraform: LSP -> TFLint
((derived-mode-p 'terraform-mode)
(flycheck-add-next-checker 'lsp 'terraform-tflint))))
;; Run this whenever LSP starts managing a buffer
(add-hook 'lsp-managed-mode-hook #'jp/lsp-flycheck-chaining)
;; / LSP config
;; jira config ;; jira config
;; (defun my-jira-bearer-token () ;; (defun my-jira-bearer-token ()
@@ -865,7 +926,8 @@ before packages are loaded."
(let ((default-directory (expand-file-name "~/"))) (let ((default-directory (expand-file-name "~/")))
(jp/set-dotfiles-environment) (jp/set-dotfiles-environment)
(magit-status) (magit-status)
(jp/unset-dotfiles-environment))) ;; (jp/unset-dotfiles-environment)
))
(with-eval-after-load 'org (with-eval-after-load 'org
;; test from https://superuser.com/questions/452649/org-mode-to-markdown-converter ;; test from https://superuser.com/questions/452649/org-mode-to-markdown-converter
@@ -893,54 +955,54 @@ before packages are loaded."
(setq org-duration-format 'h:mm) (setq org-duration-format 'h:mm)
;; ================================================================================ ;; ;; ================================================================================
;; config for org-caldav for my nextcloud installation ;; ;; config for org-caldav for my nextcloud installation
;; not working to my satisfaction yet - only configured for not used files ;; ;; not working to my satisfaction yet - only configured for not used files
;; inspiration from https://www.reddit.com/r/orgmode/comments/8rl8ep/making_orgcaldav_useable/ ;; ;; inspiration from https://www.reddit.com/r/orgmode/comments/8rl8ep/making_orgcaldav_useable/
;; doc: https://github.com/dengste/org-caldav ;; ;; doc: https://github.com/dengste/org-caldav
;; URL of the caldav server ;; ;; URL of the caldav server
(setq org-caldav-url "https://next.cloud.jetpac.org/remote.php/dav/calendars/jetpac") ;; (setq org-caldav-url "https://next.cloud.jetpac.org/remote.php/dav/calendars/jetpac")
(setq org-caldav-calendars ;; (setq org-caldav-calendars
'((:calendar-id "personal" ;; '((:calendar-id "personal"
:files ("~/Documents/org/synced_calendar.org") ;; :files ("~/Documents/org/synced_calendar.org")
;; :inbox ("~/Documents/org/caldav/from-calendar.org") ;; ;; :inbox ("~/Documents/org/caldav/from-calendar.org")
;; :sync-direction ('org->cal) ;; ;; :sync-direction ('org->cal)
)) ;; ))
) ;; )
;; config ;; ;; config
(setq org-icalendar-alarm-time 1) ;; (setq org-icalendar-alarm-time 1)
;; This makes sure to-do items as a category can show up on the calendar ;; ;; This makes sure to-do items as a category can show up on the calendar
(setq org-icalendar-include-todo t) ;; (setq org-icalendar-include-todo t)
;; This ensures all org "deadlines" show up, and show up as due dates ;; ;; This ensures all org "deadlines" show up, and show up as due dates
(setq org-icalendar-use-deadline '(event-if-todo event-if-not-todo todo-due)) ;; (setq org-icalendar-use-deadline '(event-if-todo event-if-not-todo todo-due))
;; This ensures "scheduled" org items show up, and show up as start times ;; ;; This ensures "scheduled" org items show up, and show up as start times
(setq org-icalendar-use-scheduled '(todo-start event-if-todo event-if-not-todo)) ;; (setq org-icalendar-use-scheduled '(todo-start event-if-todo event-if-not-todo))
(setq org-caldav-backup-file "~/Documents/org/caldav/org-caldav-backup.org") ;; (setq org-caldav-backup-file "~/Documents/org/caldav/org-caldav-backup.org")
(setq org-caldav-save-directory "~/Documents/org/caldav/") ;; (setq org-caldav-save-directory "~/Documents/org/caldav/")
;; ;; calendar ID on server ;; ;; ;; calendar ID on server
;; (setq org-caldav-calendar-id "personal") ;; ;; (setq org-caldav-calendar-id "personal")
;; ;; Org filename where new entries from calendar stored ;; ;; ;; Org filename where new entries from calendar stored
(setq org-caldav-inbox "~/Documents/org/caldav/from-calendar.org") ;; (setq org-caldav-inbox "~/Documents/org/caldav/from-calendar.org")
;; ;; Additional Org files to check for calendar events ;; ;; ;; Additional Org files to check for calendar events
;; ;; this line breaks the sync! ;; ;; ;; this line breaks the sync!
;; (setq org-caldav-files ("~/Documents/org/caldav/todo.org")) ;; ;; (setq org-caldav-files ("~/Documents/org/caldav/todo.org"))
;; ;; (setq org-caldav-files nil) ;; ;; ;; (setq org-caldav-files nil)
;; ;; Usually a good idea to set the timezone manually ;; ;; ;; Usually a good idea to set the timezone manually
;; (setq org-icalendar-timezone "Europe/Prague") ;; ;; (setq org-icalendar-timezone "Europe/Prague")
;; ;; sync from org to cal only ;; ;; ;; sync from org to cal only
;; (setq org-caldav-sync-direction "org->cal") ;; ;; (setq org-caldav-sync-direction "org->cal")
;; ;; (setq org-caldav-sync-direction "twoway") ;; ;; ;; (setq org-caldav-sync-direction "twoway")
;; ================================================================================ ;; ;; ================================================================================
;; Define the custum capture templates ;; Define the custum capture templates
@@ -970,7 +1032,6 @@ before packages are loaded."
"~/Documents/org/work/oracle.org" "~/Documents/org/work/oracle.org"
"~/Documents/org/someday.org" "~/Documents/org/someday.org"
"~/Documents/org/calendar.org" "~/Documents/org/calendar.org"
"~/Documents/org/synced_calendar.org"
)) ))
@@ -1031,9 +1092,6 @@ before packages are loaded."
(with-eval-after-load 'markdown-mode (with-eval-after-load 'markdown-mode
(define-key markdown-mode-map (kbd "C-c x") 'my/markdown-toggle-checkbox)) (define-key markdown-mode-map (kbd "C-c x") 'my/markdown-toggle-checkbox))
;; (with-eval-after-load 'flycheck
;; (flycheck-add-next-checker 'lsp '(warning . json-jsonlint)))
(setq calendar-week-start-day 1) ;; calendar start on Monday (setq calendar-week-start-day 1) ;; calendar start on Monday
;; org-alert configuration ;; org-alert configuration
@@ -1263,11 +1321,56 @@ This function is called at the very end of Spacemacs initialization."
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(custom-enabled-themes '(spacemacs-dark)) '(custom-enabled-themes '(spacemacs-dark))
'(custom-safe-themes '(custom-safe-themes
'("7fea145741b3ca719ae45e6533ad1f49b2a43bf199d9afaee5b6135fd9e6f9b8" '("21d2bf8d4d1df4859ff94422b5e41f6f2eeff14dd12f01428fa3cb4cb50ea0fb"
"7fea145741b3ca719ae45e6533ad1f49b2a43bf199d9afaee5b6135fd9e6f9b8"
"810691bd221e4639d5ef736b1bd930a7fb32a7c6043a5634e04f86edea973f6d" "810691bd221e4639d5ef736b1bd930a7fb32a7c6043a5634e04f86edea973f6d"
"a0ac98a1bde5d6336295fd350155a4aac1d63c53c1b3773062271074d16ebeb5" "a0ac98a1bde5d6336295fd350155a4aac1d63c53c1b3773062271074d16ebeb5"
"bbb13492a15c3258f29c21d251da1e62f1abb8bbd492386a673dcfab474186af" "bbb13492a15c3258f29c21d251da1e62f1abb8bbd492386a673dcfab474186af"
"7fd8b914e340283c189980cd1883dbdef67080ad1a3a9cc3df864ca53bdc89cf" default)) "7fd8b914e340283c189980cd1883dbdef67080ad1a3a9cc3df864ca53bdc89cf" default))
'(notmuch-column-control 1.0)
'(notmuch-hello-sections
'(notmuch-hello-insert-saved-searches
(notmuch-hello-insert-searches "Important"
(("General" . "not (tag:solaris or tag:oci)")
("Solaris" . "tag:solaris")
("OCI" . "tag:oci"))
:filter
"date:1/1/2026.. and (tag:important or tag:action)"
:show-empty-searches t)
(notmuch-hello-insert-searches "Solaris"
(("Solaris"
. "tag:solaris and not (tag:akidr or tag:s11u4-sru or tag:trunk or tag:cluster or tag:s11u3-sru or tag:RE or tag:mrspatmore or tag:IPS)")
("Solaris/All Solaris logs"
. "tag:solaris or tag:pughlog")
("Solaris/RE"
. "tag:RE and not (tag:logs or tag:pughlog)")
("Solaris/Cluster"
. "tag:cluster and not (tag:logs or tag:pughlog)")
("Solaris/AK IDRs"
. "tag:akidr and not (tag:logs or tag:pughlog)")
("Solaris/AK IDRs/logs"
. "tag:akidr and (tag:logs or tag:pushlog")
("Solaris/S11.4-SRU"
. "tag:s11u4-sru and not (tag:on or tag:userland)")
("Solaris/S11.4-SRU/ON"
. "tag:s11u4-sru and tag:on and not (tag:logs or tag:pushlog)")
("Solaris/S11.4-SRU/ON/logs"
. "tag:s11u4-sru and tag:on and (tag:logs or tag:pushlog)")
("Solaris/S11.4-SRU/Userland"
. "tag:s11u4-sru and tag:userland and not (tag:logs or tag:pushlog)")
("Solaris/S11.4-SRU/Userland/logs"
. "tag:s11u4-sru and tag:userland and (tag:logs or tag:pushlog)")
("Solaris/Trunk" . "tag:trunk")
("Solaris/S11.3-SRU"
. "tag:s11u3-sru")
("Solaris/GKAP"
. "tag:gkap")
("Solaris/IPS"
. "tag:IPS")
)
:filter "date:1/1/2026.." :filter-count
"date:1/1/2026.. and (is:unread or is:important or is:action)"
:show-empty-searches t nil nil)))
'(notmuch-saved-searches '(notmuch-saved-searches
'((:name "To me Unread" :query "tag:me AND tag:unread" :key [109]) '((:name "To me Unread" :query "tag:me AND tag:unread" :key [109])
(:name "📥 Inbox" :query "tag:inbox AND tag:unread" :key [105]))) (:name "📥 Inbox" :query "tag:inbox AND tag:unread" :key [105])))
@@ -1283,7 +1386,7 @@ This function is called at the very end of Spacemacs initialization."
color-theme-sanityinc-solarized color-theme-sanityinc-tomorrow color-theme-sanityinc-solarized color-theme-sanityinc-tomorrow
column-enforce-mode company company-anaconda company-box column-enforce-mode company company-anaconda company-box
company-quickhelp company-shell company-statistics company-terraform company-quickhelp company-shell company-statistics company-terraform
company-web concurrent cond-let ctable cyberpunk-theme cython-mode company-web concurrent cond-let conda ctable cyberpunk-theme cython-mode
dakrone-theme dap-mode darkmine-theme darkokai-theme darktooth-theme dakrone-theme dap-mode darkmine-theme darkokai-theme darktooth-theme
deferred define-word devdocs diminish dired-quick-sort disable-mouse deferred define-word devdocs diminish dired-quick-sort disable-mouse
django-theme docker dockerfile-mode doom-themes dotenv-mode dracula-theme django-theme docker dockerfile-mode doom-themes dotenv-mode dracula-theme
@@ -1296,17 +1399,16 @@ This function is called at the very end of Spacemacs initialization."
evil-nerd-commenter evil-numbers evil-org evil-surround evil-textobj-line evil-nerd-commenter evil-numbers evil-org evil-surround evil-textobj-line
evil-tutor evil-unimpaired evil-visual-mark-mode evil-visualstar evil-tutor evil-unimpaired evil-visual-mark-mode evil-visualstar
exotica-theme expand-region eyebrowse eziam-themes fancy-battery exotica-theme expand-region eyebrowse eziam-themes fancy-battery
farmhouse-themes fish-mode flatland-theme flatui-theme flx-ido farmhouse-themes fish-mode flatland-theme flatui-theme flx-ido forge
flycheck-bashate flycheck-elsa flycheck-package flycheck-pos-tip forge
frame-local gandalf-theme gh-md ghub git-link git-messenger git-modes frame-local gandalf-theme gh-md ghub git-link git-messenger git-modes
git-timemachine gitignore-templates gntp gnuplot golden-ratio git-timemachine gitignore-templates gntp gnuplot golden-ratio
google-translate gotham-theme grandshell-theme gruber-darker-theme google-translate gotham-theme grandshell-theme groovy-imports groovy-mode
gruvbox-theme haml-mode hc-zenburn-theme hcl-mode helm-ag gruber-darker-theme gruvbox-theme haml-mode hc-zenburn-theme hcl-mode
helm-c-yasnippet helm-comint helm-company helm-css-scss helm-descbinds helm-ag helm-c-yasnippet helm-comint helm-company helm-css-scss
helm-git-grep helm-ls-git helm-lsp helm-make helm-mode-manager helm-descbinds helm-git-grep helm-ls-git helm-lsp helm-make
helm-notmuch helm-org helm-org-rifle helm-projectile helm-purpose helm-mode-manager helm-notmuch helm-org helm-org-rifle helm-projectile
helm-pydoc helm-swoop helm-themes helm-xref hemisu-theme heroku-theme helm-purpose helm-pydoc helm-swoop helm-themes helm-xref hemisu-theme
hide-comnt hierarchy highlight-indentation highlight-numbers heroku-theme hide-comnt hierarchy highlight-indentation highlight-numbers
highlight-parentheses hl-todo holy-mode htmlize hungry-delete hybrid-mode highlight-parentheses hl-todo holy-mode htmlize hungry-delete hybrid-mode
impatient-mode importmagic indent-guide info+ inkpot-theme insert-shebang impatient-mode importmagic indent-guide info+ inkpot-theme insert-shebang
inspector ir-black-theme jazz-theme jbeans-theme js-doc js2-mode inspector ir-black-theme jazz-theme jbeans-theme js-doc js2-mode
@@ -1324,27 +1426,28 @@ This function is called at the very end of Spacemacs initialization."
org-mac-link org-mime org-msg org-pomodoro org-present org-mac-link org-mime org-msg org-pomodoro org-present
org-project-capture org-projectile org-rich-yank org-superstar org-project-capture org-projectile org-rich-yank org-superstar
organic-green-theme orgit orgit-forge origami overseer ox-jira ox-twbs organic-green-theme orgit orgit-forge origami overseer ox-jira ox-twbs
pandoc-mode paradox password-generator pcre2el phoenix-dark-mono-theme pandoc-mode paradox password-generator pcache pcre2el
phoenix-dark-pink-theme pip-requirements pipenv pippel planet-theme phoenix-dark-mono-theme phoenix-dark-pink-theme pip-requirements pipenv
poetry popwin pos-tip prettier-js professional-theme pug-mode pippel planet-theme poetry popwin pos-tip prettier-js professional-theme
purple-haze-theme py-isort pydoc pyenv-mode pylookup pytest pythonic pug-mode purple-haze-theme py-isort pydoc pyenv-mode pylookup pytest
pyvenv quickrun railscasts-theme rainbow-delimiters rebecca-theme request pythonic pyvenv quickrun railscasts-theme rainbow-delimiters
restart-emacs reverse-theme sass-mode scss-mode seti-theme shell-pop rebecca-theme request restart-emacs reverse-theme sass-mode scss-mode
shfmt simple-httpd skewer-mode slim-mode smeargle smyx-theme seti-theme shell-pop shfmt simple-httpd skewer-mode slim-mode smeargle
soft-charcoal-theme soft-morning-theme soft-stone-theme solarized-theme smyx-theme soft-charcoal-theme soft-morning-theme soft-stone-theme
soothe-theme space-doc spacegray-theme spaceline spacemacs-purpose-popwin solarized-theme soothe-theme space-doc spacegray-theme spaceline
spacemacs-whitespace-cleanup sphinx-doc string-edit-at-point spacemacs-purpose-popwin spacemacs-whitespace-cleanup sphinx-doc
string-inflection subatomic-theme subatomic256-theme sublime-themes string-edit-at-point string-inflection subatomic-theme subatomic256-theme
sunny-day-theme symbol-overlay symon tablist tagedit tango-2-theme sublime-themes sunny-day-theme symbol-overlay symon tablist tagedit
tango-plus-theme tangotango-theme tao-theme term-cursor terminal-here tango-2-theme tango-plus-theme tangotango-theme tao-theme term-cursor
tern terraform-mode toc-org toml-mode toxi-theme transient treemacs-evil terminal-here tern terraform-mode toc-org toml-mode toxi-theme transient
treemacs-icons-dired treemacs-magit treemacs-persp treemacs-projectile treemacs-evil treemacs-icons-dired treemacs-magit treemacs-persp
treepy twilight-anti-bright-theme twilight-bright-theme twilight-theme treemacs-projectile treepy twilight-anti-bright-theme
ujelly-theme underwater-theme undo-fu undo-fu-session vi-tilde-fringe twilight-bright-theme twilight-theme ujelly-theme underwater-theme
vim-powerline volatile-highlights vterm vundo web-beautify undo-fu undo-fu-session vi-tilde-fringe volatile-highlights vterm vundo
web-completion-data web-mode which-key white-sand-theme winum with-editor web-beautify web-completion-data web-mode which-key white-sand-theme
writeroom-mode ws-butler yaml yaml-mode yapfify yasnippet winum with-editor writeroom-mode ws-butler yaml yaml-mode yapfify
yasnippet-snippets zen-and-art-theme zenburn-theme zonokai-emacs))) yasnippet yasnippet-snippets zen-and-art-theme zenburn-theme
zonokai-emacs)))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.

17
.zshenv
View File

@@ -2,11 +2,24 @@ set -o vi
export LC_ALL=en_US.UTF-8 export LC_ALL=en_US.UTF-8
export PATH=/Users/jetpac/.asdf/shims/:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jetpac/work/flutter/bin:$HOME/.rd/bin:$HOME/bin:$PATH:$HOME/.fzf/bin export PATH=/Users/jetpac/.asdf/shims/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jetpac/work/flutter/bin:$HOME/.rd/bin:$HOME/bin:$PATH:$HOME/.fzf/bin
# homebrew config
# output of brew shellenv
export HOMEBREW_PREFIX="/opt/homebrew";
export HOMEBREW_CELLAR="/opt/homebrew/Cellar";
export HOMEBREW_REPOSITORY="/opt/homebrew";
fpath[1,0]="/opt/homebrew/share/zsh/site-functions";
eval "$(/usr/bin/env PATH_HELPER_ROOT="/opt/homebrew" /usr/libexec/path_helper -s)"
[ -z "${MANPATH-}" ] || export MANPATH=":${MANPATH#:}";
export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}";
alias oe='open /Applications/Emacs.app' alias oe='open /Applications/Emacs.app'
alias mc='/opt/homebrew/bin/mc --nosubshell' # Force mc to use bash for its subshell
alias mc='SHELL=/bin/bash mc'
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
alias -g N="2>&1 " alias -g N="2>&1 "
alias pig='ping' alias pig='ping'

View File

@@ -89,12 +89,6 @@
"Text" : "01 6c", "Text" : "01 6c",
"Version" : 1 "Version" : 1
}, },
"0x6e-0x80000-0x2d" : {
"Action" : 11,
"Label" : "",
"Text" : "01 6e",
"Version" : 1
},
"0x70-0x80000-0x23" : { "0x70-0x80000-0x23" : {
"Action" : 11, "Action" : 11,
"Label" : "", "Label" : "",

426
bin/retag-email Executable file
View File

@@ -0,0 +1,426 @@
#!/usr/bin/env bash
set -x
set -e
#
# script to tag notmuch emails based on my preference
#
# inspired by https://forsooth.org/posts/email-in-spacemacs/index.html
#
#
# tags: important solaris oci osd
#
#
notmuch tag +sent -unread 'folder:/[Ss]ent.*/'
notmuch tag +me to:petr.nyc@oracle.com
# idea for logic
# sort by projects, don't unset new/read tag
# at the very bottom, unset the new/read tag based on if I'm interested in the latest
# status for the project / logs for the project and so on - good for stepping for someone
# General sorting rules not specific to projects
################################################################################
notmuch tag +important -- \
tag:new AND "
(
subject:/[Cc]omplete.*[Tt]raining/ OR
subject:/.*Reminder:?/ OR
from:elanor.cz OR
from:payroll_cz OR
from:instructor.cz OR
subject:Expense Report Approval OR
subject:/[Aa]ction.[Nn]eeded/ OR
from:permissions.oci.oraclecloud.com
)"
notmuch tag +general \
tag:new AND "(
subject:'Oracle Open Roles' OR
from:tania.c.cortez OR
from:info@eduagroup.cz OR
subject:'FYI: Expense Reimbursement'
)"
notmuch tag +calendar \
tag:new AND mimetype:text/calendar
# Solaris
################################################################################
# general solaris
notmuch tag +solaris +logs +mrspatmore -- \
tag:new AND "(
subject:/.*BugDB.*release.deployment/ OR
subject:import/sig_ci/mercurial/mrspatmore OR
(from:vcap_admin_ww_grp AND subject:/WARNING:|INFO:/)
)"
notmuch tag +solaris +logs \
tag:new AND 'subject:Next IDR ID is'
notmuch tag +solaris \
tag:new AND "(
from:deirdre.williams@oracle.com AND subject:'Sustaining Meeting'
)"
# phabricator
notmuch tag +phabricator +logs -me \
tag:new AND \
from:noreply@scapen-phabricator.us.oracle.com
notmuch tag +s11u3-sru +on \
tag:new AND "(
tag:phabricator AND
subject:/rONCLOSED|rONMAN|rONSRC/ and subject:/11.3/
)"
notmuch tag +s11u3-sru +userland \
tag:new AND "(
tag:phabricator AND
subject:/\[Diffusion\].*rUSERLAND.*11\.3/
)"
notmuch tag +s11u4-sru +userland \
tag:new AND "(
tag:phabricator AND
subject:/\[Diffusion\].*rUSERLAND.*11\.4/
)"
notmuch tag +mrspatmore \
tag:new AND "(
tag:phabricator AND \
subject:/\[Diffusion\].*rMRSPATMORE/
)"
notmuch tag +mrspatmore \
tag:new AND "(
tag:phabricator AND \
subject:/\[Diffusion\].*rREJENKINSLIB/
)"
notmuch tag +IPS \
tag:new AND "(
tag:phabricator AND \
( ( subject:/\[Differential\]/ and body:REPOSITORY NEAR/1 rPKG ) OR
( subject:/\[Diffusion\]/ and body:COMMITS NEAR rPKG )
)
)"
# akidr
notmuch tag +akidr +logs -unread \
tag:new AND "(
from:vcap_admin_ww_grp AND
subject:'Docker with ARU uploadcli has been automatically frozen'
)"
notmuch tag +akidr \
tag:new AND "(
to:'bot@artas' OR
from:'bot@artas' OR
to:'fishworks-gk_ww_grp@oracle.com' OR
subject:'PASS s11_4aksruidr' OR
subject:'Build started for AK IDR' OR
subject:'New AK IDR request for'
)"
notmuch tag +akidr +logs -unread \
tag:new AND "(
from:'vcap_admin_ww_grp@oracle.com' AND \
subject:'ARU Uploads has been frozen for' AND \
subject:'this is a reminder please review'
)"
notmuch tag +akidr +logs +important \
tag:new AND "(
(from:sig-devops_ww_grp OR from:adam.paul) AND \
subject:/8\.\8.*idr.*DC.*has.failed/
)"
# WebRTI
notmuch tag +webrti \
tag:new AND "(
body:Consolidation: AND
body:RTI: AND
subject:WebRTI:
)"
notmuch tag +important \
tag:new AND "(
tag:webrti AND
to:petr.nyc and
subject:/NEED.APPROVAL.*WebRTI/
)"
# BugDB
notmuch tag +bugdb \
tag:new AND "(
from:ociapp-notifications and subject:/ER|Bug/
)"
# ON
notmuch tag +on tag:new AND "(tag:webrti AND body:Consolidation: NEAR/1 on"
notmuch tag +s11u3-sru tag:new AND "(tag:webrti AND tag:on AND body:Gates: S11.SRU.Sustaining)"
notmuch tag +s11u3-sru tag:new AND "(subject:/Solaris.*11.3.*[Rr]eleased/)"
notmuch tag +s11u4-sru tag:new AND "(subject:/Solaris.*11.4.*[Rr]eleased/)"
notmuch tag +s11u4-sru +logs +on \
tag:new and 'from:/root@sig-on-sru11-3-[xs]01/'
notmuch tag +s11u4-sru tag:new AND "(
tag:webrti AND tag:on AND body:Gates: 11.4-SRU
)"
notmuch tag +on +pushlog \
tag:new AND \
subject:'/export.on-gate.*push/'
notmuch tag +on +trunk \
tag:new AND "(
to:gk@hubbins OR to:gatekeeper@hubbins OR to:hg@hubbins OR
from:gatekeeper@hubbins
)"
notmuch tag +important \
tag:new AND "(
tag:on and subject:error and (from:gatekeeper@hubbins or to:gatekeeper@hubbins)
)"
notmuch tag +important +s11u4-sru +on \
tag:new AND "(
from:sig-devops_ww_grp AND
subject:/INPUT.NEEDED.*11.4|s11u4_sust.*Ready.for/
)"
notmuch tag +trunk \
tag:new AND "(
tag:on AND tag:pushlog body:Branch: default
)"
notmuch tag +s11u3-sru tag:new AND "(
tag:on AND tag:pushlog body:Branch: s11u3-sru
)"
notmuch tag +on +trunk +logs \
tag:new AND \
'(to:gk-builds@hubbins.us.oracle.com OR to:gk-splice-builds@hubbins.us.oracle.com) AND body:"Build summary"'
notmuch tag +on +trunk +logs -unread \
tag:new AND "(
from:noaccess AND
subject:/boston|eleven|hopper|on-gate-test|severin|smalls|stumpy|zero/
)"
notmuch tag +on +trunk +jenkins tag:new AND to:gk-jenkins@hubbins.us.oracle.com
notmuch tag +on +trunk +logs \
tag:new AND "(
(to:gk@hubbins.us.oracle.com and subject:'zpool report for') OR
(to:on-parfait@hubbins and subject:'Parfait Differences')
)"
notmuch tag +on +s11u4-sru +logs +important \
tag:new AND "(
from:gk@hubbins.us.oracle.com AND
subject:'New SRU branch from trunk'
)"
notmuch tag +on +trunk +s11u4-sru +s11u3-sru +logs +important \
tag:new AND subject:on-repo-hooks
notmuch tag +on +s11u4-sru +important +logs \
tag:new AND 'subject:/URGENT:.production.build-11.4.*/'
notmuch tag +on +pushlog \
tag:new AND to:hubbins AND 'subject:/.export\/on-gate.*push/'
notmuch tag +on +s11u4-sru +important +logs \
tag:new AND subject:"fail" AND subject:"Solaris_11/11.4/ON" AND subject:"11.4"
notmuch tag +on +s11u4-sru +important +logs \
tag:new AND subject:"fail" AND 'subject:/on-11u4-bld/'
notmuch tag +on +gkap +logs +s11u4-sru \
tag:new AND "(
from:s11autoport_grp@oracle.com AND
(subject:'periodic GKAP push analysis') or subject:'GK Backport testing has completed'
)"
notmuch tag +on +gkap +logs +s11u4-sru \
tag:new AND from:rpe_sme_ww_grp@oracle.com AND subject:"/INTERIM.GK.Backport.report.for.GKAP_11.4.*/"
notmuch tag +on +logs +s11u4-sru \
tag:new AND "(
subject:/on-gate.s11u4..*.packages.ready/ OR
subject:/pass:.*Solaris_11/11.4/ON/production.build-11.4.*/ OR
subject:/^pass.*11.4..*.11.4.*..on-11u4-bld-[xs]./
)"
notmuch tag +solaris +logs -unread \
tag:new AND 'subject:/\[\/var\/tmp\/repo_cache\/PKG\]/'
notmuch tag +on +important \
tag:new AND \
to:solaris_sru_gk_ww_grp AND \
subject:FAILED
# userland
notmuch tag +userland tag:new AND "subject:GATE OPEN" AND "from:solaris_sru_gk_ww_grp" AND body:userland
notmuch tag +userland tag:new AND tag:webrti AND "body:/Consolidation.*userland/"
notmuch tag +s11u4-sru tag:new AND tag:userland AND tag:webrti AND body:"/Gates:.*S11.4-SRU/"
notmuch tag +trunk tag:new AND tag:userland AND tag:webrti AND body:"/Gates:.*solaris-trunk/"
notmuch tag +userland tag:new AND to:userland-s11-sru-notify
notmuch tag +s11u3-sru \
tag:new AND \
tag:userland AND \
subject:'push to s11u3-sru'
notmuch tag +s11u4-sru \
tag:new AND \
tag:userland AND \
subject:'/.*push.to.s11u4_sust.*/'
# cluster
notmuch tag +cluster \
tag:new AND "(
tag:webrti AND (body:Consolidation: sc-geo or body:Consolidation: suncluster) OR
subject:'SC4.4 SRU Nightly' OR from:'SC Build Engineering'
)"
notmuch tag +important \
tag:new AND \
tag:cluster and 'subject:/[Ff]ail/'
# IPS
notmuch tag +IPS \
tag:new AND \
subject:'[Differential]' AND body:'rPKG Solaris Image Packaging System'
# RE
notmuch tag +RE \
tag:new AND "(
to:solaris-re_us_grp OR
to:ips_tracker_support_ww_grp OR
from:ips_tracker_support_ww_grp
)"
notmuch tag +s11u3-sru \
tag:new AND \
tag:re AND \
'subject:/Oracle.Solaris.11\.3/'
notmuch tag +RE +s11u4-sru \
tag:new AND \
tag:RE AND \
'subject:/.*IDRs.*s11_4sru.*/'
notmuch tag +s11u4-sru \
tag:new AND \
tag:RE AND \
'subject:/RTI.*withdrawal.notification/' AND \
body:'11.4'
notmuch tag +s11u4-sru \
tag:new AND \
tag:RE AND \
'subject:/S11.4.*repo.ready.for.testing/'
notmuch tag +s11u3-sru \
tag:new AND \
tag:RE AND \
'subject:/.*IDRs.*s11_3sru.*/'
notmuch tag +cluster \
tag:new AND \
tag:re AND \
'(subject:/.*IDRs.*cluster.*/ OR subject:/SRU.Build.Package.Profile.successfully.created.for.solariscluster.*/)'
notmuch tag +akidr \
tag:new AND \
tag:RE AND \
'subject:/.*Tracker.FYI.*IDR.*state.change/'
notmuch tag +RE s11u4-sru \
tag:new AND \
subject:'[Differential]' AND body:'Repository rRETRUNK Release Engineering Trunk Gate'
notmuch tag +solaris \
tag:new AND "(
tag:akidr OR
tag:bugdb OR
tag:cluster OR
tag:IPS OR
tag:on OR
tag:phabricator OR
tag:RE OR
tag:trunk OR
tag:userland OR
tag:webrti
)"
# end of Solaris
################################################################################
# OCI / OSD
################################################################################
notmuch tag +osd \
tag:new AND "(
to:osd-devops_ww_grp@oracle.com OR \
subject:[gbu confluence]
)"
notmuch tag +osd +brownbag \
tag:new AND 'subject:/[Bb]rown.[Bb]ag/'
notmuch tag +deployment-ticket tag:new AND tag:osd AND subject:"New OSD deployment ticket:"
notmuch tag +ocean-incident tag:new AND tag:osd AND subject:"[Ocean Incident]"
notmuch tag +alarm tag:new AND tag:osd AND subject:'Alarm: '
notmuch tag +osd tag:new AND subject:'InfraCloud JIRA'
notmuch tag +osd +sgd \
tag:new AND subject:'SGD'
notmuch tag +oci +announcement \
tag:new AND subject:'A PSA'
# PRs for approval
notmuch tag +osd +PRs \
tag:new AND subject:'ACTION REQUIRED - Peer approval needed for Change Request' AND \
body:'/Service Owner:.*Desktop as a Service/'
# PRs from other projects
notmuch tag +oci +CCAT-PRs \
tag:new AND \
subject:'ACTION REQUIRED - Peer approval needed for Change Request' AND \
body:'/Service Owner:Compute Cloud at Customer/'
notmuch tag +oci tag:new AND tag:osd
################################################################################
# I don't want these in my focused inbox
################################################################################
# passed logs for on trunk
notmuch tag -inbox -unread tag:on AND tag:trunk AND tag:logs AND subject:"pass"
# trunk RTIs,pushlog,jenkins logs
notmuch tag -inbox -unread tag:trunk and tag:webrti
notmuch tag -inbox -unread tag:on AND tag:trunk AND tag:pushlog
notmuch tag -inbox -unread tag:on AND tag:trunk AND tag:jenkins
# ON GKAP notifications
notmuch tag -inbox -unread tag:gkap AND tag:logs
# osd ocean incidents, alarms
notmuch tag -inbox -unread tag:osd AND '(tag:ocean-incident or tag:alarm)'
# emails with subject:"REGION BUILD ALERT]" are important to watch
# ================================================================================
# the very last part of this - remove the new tag
notmuch tag -new tag:new