From 8ac356b4f4d8d10ae4c649bc5d6f5896f47ea4a2 Mon Sep 17 00:00:00 2001 From: Ayman Boukraa Date: Thu, 12 Mar 2026 13:19:43 +0100 Subject: [PATCH] zsh: add kitten ssh aliases s and si Co-Authored-By: Claude Sonnet 4.6 --- config/doom/config.org | 80 ++++++++++++++++++++++++++++++++++++++--- config/doom/packages.el | 3 ++ home/modules/zsh.nix | 2 ++ 3 files changed, 81 insertions(+), 4 deletions(-) diff --git a/config/doom/config.org b/config/doom/config.org index 06f5152..f1d8cd7 100644 --- a/config/doom/config.org +++ b/config/doom/config.org @@ -41,12 +41,84 @@ ** Org Roam #+begin_src emacs-lisp (after! org-roam - (setq org-roam-directory (concat org-directory "notes/"))) + (setq org-roam-directory "~/org/roam/" + org-roam-dailies-directory "dailies/") + + ;; Node capture templates + (setq org-roam-capture-templates + '(("f" "Fleeting Note" plain + "%?" + :target (file+head "fleeting/%<%Y%m%d%H%M%S>-${slug}.org" + "#+title: ${title}\n#+filetags: :fleeting:\n#+date: %U\n") + :unnarrowed t) + + ("e" "Evergreen Note" plain + "%?" + :target (file+head "evergreen/%<%Y%m%d%H%M%S>-${slug}.org" + "#+title: ${title}\n#+filetags: :evergreen:\n#+date: %U\n") + :unnarrowed t) + + ("p" "Project" plain + (file "~/org/roam/templates/project.org") + :target (file+head "projects/%<%Y%m%d%H%M%S>-${slug}.org" + "#+title: ${title}\n#+filetags: :project:active:\n#+date: %U\n") + :unnarrowed t) + + ("m" "MOC" plain + "%?" + :target (file+head "mocs/${slug}.org" + "#+title: ${title}\n#+filetags: :moc:\n") + :unnarrowed t) + + ("g" "Goal" plain + (file "~/org/roam/templates/goal.org") + :target (file+head "goals/${slug}.org" + "#+title: ${title}\n#+filetags: :goal:active:\n#+date: %U\n") + :unnarrowed t))) + + ;; Dailies templates + (setq org-roam-dailies-capture-templates + '(("d" "daily" plain + "%?" + :target (file+head "%<%Y-%m-%d>.org" + "#+title: %<%Y-%m-%d>\n#+filetags: :daily:\n\n* 🌅 Today's Focus\n\n* 💼 Work\n** Tasks\n** Notes\n\n* 🔬 Tech\n** Tasks\n** Notes\n\n* 🧍 Personal\n** Tasks\n** Notes\n\n* 📋 Habits\n\n* 🌀 Fleeting / Inbox\n") + :unnarrowed t + :immediate-finish t) + + ("w" "weekly review" plain + (file "~/org/roam/templates/weekly-review.org") + :target (file+head "reviews/%<%Y>-W%<%V>.org" + "#+title: Weekly Review W%<%V> %<%Y>\n#+filetags: :review:weekly:\n") + :unnarrowed t) + + ("m" "monthly review" plain + (file "~/org/roam/templates/monthly-review.org") + :target (file+head "reviews/%<%Y>-%<%m>.org" + "#+title: Monthly Review %<%B %Y>\n#+filetags: :review:monthly:\n") + :unnarrowed t))) + + ;; Point agenda at roam directory + (setq org-agenda-files (list "~/org/roam/")) + + ;; DB auto-sync + (org-roam-db-autosync-mode)) #+end_src -#+RESULTS: -: ~/org/notes/ - +** Agenda Views +#+begin_src emacs-lisp +(after! org + (setq org-agenda-custom-commands + '(("w" "Work" tags-todo "+work+active" + ((org-agenda-overriding-header "Work — Active Tasks"))) + ("p" "Personal" tags-todo "+personal+active" + ((org-agenda-overriding-header "Personal — Active Tasks"))) + ("t" "Tech" tags-todo "+tech+active" + ((org-agenda-overriding-header "Tech — Active Tasks"))) + ("n" "All NEXT actions" tags-todo "+NEXT" + ((org-agenda-overriding-header "All Next Actions"))) + ("A" "Full active" tags-todo "+active" + ((org-agenda-overriding-header "Everything Active")))))) +#+end_src ** Auto-revert (Syncthing) #+begin_src emacs-lisp (global-auto-revert-mode t) diff --git a/config/doom/packages.el b/config/doom/packages.el index d2680fe..63f99a3 100644 --- a/config/doom/packages.el +++ b/config/doom/packages.el @@ -52,3 +52,6 @@ ;; (unpin! pinned-package another-pinned-package) ;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) ;; (unpin! t) + + +(package! org-ql) diff --git a/home/modules/zsh.nix b/home/modules/zsh.nix index 186259a..fe76f4e 100644 --- a/home/modules/zsh.nix +++ b/home/modules/zsh.nix @@ -30,6 +30,8 @@ in ll = "eza -la --icons"; cat = "bat"; grep = "rg"; + s = "kitten ssh"; + si = ''kitten ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no"''; }; };