mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 12:00:24 +10:00
Minor edits.
This commit is contained in:
@@ -116,41 +116,38 @@ You should use `set-eshell-alias!' to change this.")
|
||||
(setq +eshell--default-aliases eshell-command-aliases-list
|
||||
eshell-command-aliases-list
|
||||
(append eshell-command-aliases-list
|
||||
+eshell-aliases))))
|
||||
+eshell-aliases)))))
|
||||
|
||||
(add-hook! 'eshell-first-time-mode-hook
|
||||
(defun +eshell-init-keymap-h ()
|
||||
;; Keys must be bound in a hook because eshell resets its keymap every
|
||||
;; time `eshell-mode' is enabled. Why? It is not for us mere mortals to
|
||||
;; grasp such wisdom.
|
||||
(map! :map eshell-mode-map
|
||||
:n "RET" #'+eshell/goto-end-of-prompt
|
||||
:n [return] #'+eshell/goto-end-of-prompt
|
||||
:ni "C-j" #'eshell-next-matching-input-from-input
|
||||
:ni "C-k" #'eshell-previous-matching-input-from-input
|
||||
:ig "C-d" #'+eshell/quit-or-delete-char
|
||||
:i "C-c h" #'evil-window-left
|
||||
:i "C-c j" #'evil-window-down
|
||||
:i "C-c k" #'evil-window-up
|
||||
:i "C-c l" #'evil-window-right
|
||||
"C-s" #'+eshell/search-history
|
||||
;; Emacs bindings
|
||||
"C-e" #'end-of-line
|
||||
;; Tmux-esque prefix keybinds
|
||||
"C-c s" #'+eshell/split-below
|
||||
"C-c v" #'+eshell/split-right
|
||||
"C-c x" #'+eshell/kill-and-close
|
||||
[remap split-window-below] #'+eshell/split-below
|
||||
[remap split-window-right] #'+eshell/split-right
|
||||
[remap doom/backward-to-bol-or-indent] #'eshell-bol
|
||||
[remap doom/backward-kill-to-bol-and-indent] #'eshell-kill-input
|
||||
[remap evil-delete-back-to-indentation] #'eshell-kill-input
|
||||
[remap evil-window-split] #'+eshell/split-below
|
||||
[remap evil-window-vsplit] #'+eshell/split-right
|
||||
(:localleader
|
||||
"b" #'eshell-insert-buffer-name
|
||||
"e" #'eshell-insert-envvar
|
||||
"s" #'+eshell/search-history)))))
|
||||
|
||||
(after! esh-mode
|
||||
(map! :map eshell-mode-map
|
||||
:n "RET" #'+eshell/goto-end-of-prompt
|
||||
:n [return] #'+eshell/goto-end-of-prompt
|
||||
:ni "C-j" #'eshell-next-matching-input-from-input
|
||||
:ni "C-k" #'eshell-previous-matching-input-from-input
|
||||
:ig "C-d" #'+eshell/quit-or-delete-char
|
||||
:i "C-c h" #'evil-window-left
|
||||
:i "C-c j" #'evil-window-down
|
||||
:i "C-c k" #'evil-window-up
|
||||
:i "C-c l" #'evil-window-right
|
||||
"C-s" #'+eshell/search-history
|
||||
;; Emacs bindings
|
||||
"C-e" #'end-of-line
|
||||
;; Tmux-esque prefix keybinds
|
||||
"C-c s" #'+eshell/split-below
|
||||
"C-c v" #'+eshell/split-right
|
||||
"C-c x" #'+eshell/kill-and-close
|
||||
[remap split-window-below] #'+eshell/split-below
|
||||
[remap split-window-right] #'+eshell/split-right
|
||||
[remap doom/backward-to-bol-or-indent] #'eshell-bol
|
||||
[remap doom/backward-kill-to-bol-and-indent] #'eshell-kill-input
|
||||
[remap evil-delete-back-to-indentation] #'eshell-kill-input
|
||||
[remap evil-window-split] #'+eshell/split-below
|
||||
[remap evil-window-vsplit] #'+eshell/split-right
|
||||
(:localleader
|
||||
"b" #'eshell-insert-buffer-name
|
||||
"e" #'eshell-insert-envvar
|
||||
"s" #'+eshell/search-history)))
|
||||
|
||||
|
||||
(use-package! eshell-up
|
||||
|
||||
@@ -10,4 +10,4 @@
|
||||
(unless IS-WINDOWS
|
||||
(when (featurep! :completion company)
|
||||
(package! fish-completion :pin "10384881817b5ae38cf6197a077a663420090d2c")
|
||||
(package! bash-completion :pin "d47edb9d4142a22746009c1f680df93a4fefd107")))
|
||||
(package! bash-completion :pin "65e54c6f9c0ffebf94f7c505694bd249b9b53d32")))
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
;; spawn another if want one.
|
||||
(setq vterm-kill-buffer-on-exit t)
|
||||
|
||||
;; 5000 lines of scrollback, instead of 1000
|
||||
(setq vterm-max-scrollback 5000)
|
||||
|
||||
(setq-hook! 'vterm-mode-hook
|
||||
;; Don't prompt about dying processes when killing vterm
|
||||
confirm-kill-processes nil
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
(package! vterm
|
||||
:built-in 'prefer
|
||||
:pin "797357bf65952337627f2d0c594c2fef600aafae")
|
||||
:pin "01a1332ebb11daca5408f7fcb8a08454b0176e79")
|
||||
|
||||
Reference in New Issue
Block a user