diff options
| author | 2026-01-02 06:54:19 -0800 | |
|---|---|---|
| committer | 2026-01-02 06:54:19 -0800 | |
| commit | 3c07a58b70b4a4e93f0ee34f6c3b122c561f4b84 (patch) | |
| tree | 37f2fa6d72f584cdf7d9316c51e7eaf5f4d423e3 | |
| parent | 48cbfe8e46222e06a6e7322761807a3c22b6cce8 (diff) | |
| download | new-dotfiles-3c07a58b70b4a4e93f0ee34f6c3b122c561f4b84.tar.gz new-dotfiles-3c07a58b70b4a4e93f0ee34f6c3b122c561f4b84.zip | |
zsh: Add some keybindings
| -rw-r--r-- | oni/home/config/common.scm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/oni/home/config/common.scm b/oni/home/config/common.scm index af3dd44..1b0c7d2 100644 --- a/oni/home/config/common.scm +++ b/oni/home/config/common.scm @@ -276,7 +276,13 @@ LocalForward 19999 localhost:19999")) "PROMPT=\"%T \\$(spwd) %B%(?.%F{2}.%F{1}[%?])>%b%f \"" ;; Prevent aliases from being expanded before looking up ;; completions. - "setopt completealiases\n") + "setopt completealiases\n" + ;; Enable magic-space so shortcuts like !! are expanded. + "bindkey ' ' magic-space\n" + ;; Add shortcut to add sudo to previous command. + "bindkey -s '^[!' '\\exup-history\\n\\C-asudo \\C-e'\n" + ;; Add shortcut to add less to previous command. + "bindkey -s '^[l' '\\exup-history\\n | less'\n") (local-file "zsh/guix-environment.zsh"))))) ;; This has to be the first extension because it needs to be added to the ;; configuration last. |
