pop-os: Set Atuin to accept a command on RET
This commit is contained in:
parent
f1854bb4f6
commit
de4407a85c
2 changed files with 11 additions and 2 deletions
|
@ -137,7 +137,8 @@
|
||||||
(inline-height 20)
|
(inline-height 20)
|
||||||
(filter-mode 'directory)
|
(filter-mode 'directory)
|
||||||
(history-filter
|
(history-filter
|
||||||
'("^ +"))))
|
'("^ +"))
|
||||||
|
(enter-accept #t)))
|
||||||
|
|
||||||
(service home-stumpwm-service-type
|
(service home-stumpwm-service-type
|
||||||
(home-stumpwm-configuration
|
(home-stumpwm-configuration
|
||||||
|
|
|
@ -156,6 +156,9 @@
|
||||||
(format #f "~a = ~a~%" (serialize-field-name field)
|
(format #f "~a = ~a~%" (serialize-field-name field)
|
||||||
(string-append "[" (string-join (map (λ (v) (format #f "~s" v)) value) ",") "]")))
|
(string-append "[" (string-join (map (λ (v) (format #f "~s" v)) value) ",") "]")))
|
||||||
|
|
||||||
|
(define (serialize-boolean field value)
|
||||||
|
(format #f "~a = ~a~%" (serialize-field-name field) (if value "true" "false")))
|
||||||
|
|
||||||
(define (filter-mode? value)
|
(define (filter-mode? value)
|
||||||
(memq value '(global host session directory workspace)))
|
(memq value '(global host session directory workspace)))
|
||||||
|
|
||||||
|
@ -173,7 +176,12 @@
|
||||||
(list-of-strings '())
|
(list-of-strings '())
|
||||||
"The history filter allows you to exclude commands from history tracking - maybe
|
"The history filter allows you to exclude commands from history tracking - maybe
|
||||||
you want to keep ALL of your curl commands totally out of your shell history, or
|
you want to keep ALL of your curl commands totally out of your shell history, or
|
||||||
maybe just some matching a pattern."))
|
maybe just some matching a pattern.")
|
||||||
|
(enter-accept
|
||||||
|
(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."))
|
||||||
|
|
||||||
(define (add-zsh-atuin config)
|
(define (add-zsh-atuin config)
|
||||||
(home-zsh-extension
|
(home-zsh-extension
|
||||||
|
|
Loading…
Add table
Reference in a new issue