;;; setup-shell.el --- Shells and remote hosts -*- lexical-binding: t -*- ;;; Commentary: ;; Configure Eshell, Shell, and Tramp. ;;; Code: (declare-function consult-history "consult" (&optional history-elements)) (defun mine-eshell-setup () "Set up Eshell with consult-history binding." (keymap-set (current-local-map) "C-r" #'consult-history)) (add-hook 'eshell-mode-hook #'mine-eshell-setup) (setopt tramp-default-method "ssh") (setopt tramp-verbose 2) (setopt remote-file-name-inhibit-cache 60) (with-eval-after-load 'tramp (add-to-list 'tramp-remote-path 'tramp-own-remote-path)) (provide 'setup-shell) ;;; setup-shell.el ends here