aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2025-12-10 01:11:53 -0800
committerGravatar Tom Willemse2025-12-10 01:11:53 -0800
commit5918ac6cc3a873fa93ede3bf8b30aef8ab7da12b (patch)
treeb6e40ab4e7c19871f6d786189269fcf299143f04
parent64f126df314514e6792a0f2ffa490fa152890e06 (diff)
downloadnew-dotfiles-5918ac6cc3a873fa93ede3bf8b30aef8ab7da12b.tar.gz
new-dotfiles-5918ac6cc3a873fa93ede3bf8b30aef8ab7da12b.zip
atuin: Add ‘guix’ as a common-prefix command
-rw-r--r--oni/home/config/pop-os.scm4
-rw-r--r--oni/home/services/zsh.scm6
2 files changed, 8 insertions, 2 deletions
diff --git a/oni/home/config/pop-os.scm b/oni/home/config/pop-os.scm
index 852ba24..9fc0c0c 100644
--- a/oni/home/config/pop-os.scm
+++ b/oni/home/config/pop-os.scm
@@ -126,7 +126,9 @@
(filter-mode 'directory)
(history-filter
'("^ +"))
- (enter-accept #t)))))))
+ (enter-accept #t)
+ (common-subcommands
+ '("guix"))))))))
(define oni-home-herbstluftwm-configuration
(home-module
diff --git a/oni/home/services/zsh.scm b/oni/home/services/zsh.scm
index 2dd1718..2d714d1 100644
--- a/oni/home/services/zsh.scm
+++ b/oni/home/services/zsh.scm
@@ -181,7 +181,11 @@ maybe just some matching a pattern.")
(boolean #f)
"When set to true, Atuin will default to immediately executing a command rather
than the user having to press enter twice. Pressing tab will return to the shell
-and give the user a chance to edit."))
+and give the user a chance to edit.")
+ (common-subcommands
+ (list-of-strings '())
+ "Configures commands where we should consider the subcommand as part of the
+statistics. For example, consider kubectl get rather than just kubectl."))
(define (add-zsh-atuin config)
(home-zsh-extension