diff options
Diffstat (limited to '.config/emacs')
-rw-r--r-- | .config/emacs/modules/bd--shells.el | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/.config/emacs/modules/bd--shells.el b/.config/emacs/modules/bd--shells.el index ae34bbe..c857f4c 100644 --- a/.config/emacs/modules/bd--shells.el +++ b/.config/emacs/modules/bd--shells.el @@ -8,6 +8,20 @@ (with-eval-after-load "term" (defalias 'term 'ansi-term)) ;;;; eshell +;; path +(add-to-list 'exec-path "/home/bdunahu/Personal/scripts") + +;; alias + +;; completions +(require 'esh-mode) +(keymap-set eshell-mode-map "<tab>" 'completion-at-point) +(setopt eshell-prompt-function 'bd/eshell-prompt + eshell-prompt-regexp "^> " + eshell-scroll-to-bottom-on-input 'this + eshell-banner-message (concat "\n" (propertize " " 'display (create-image (expand-file-name "~/.config/emacs/images/raven.png") 'png nil :scale 0.2 :align-to "center")) "\n")) + +;; prompt (defun bd/get-prompt-path () (abbreviate-file-name (eshell/pwd))) @@ -23,24 +37,8 @@ status, and path." (propertize "\n> " 'face `(:foreground "#c33027")))) -(require 'esh-mode) -(keymap-set eshell-mode-map "<tab>" 'completion-at-point) -(setopt eshell-prompt-function 'bd/eshell-prompt - eshell-prompt-regexp "^> " - eshell-scroll-to-bottom-on-input 'this - eshell-banner-message (concat "\n" (propertize " " 'display (create-image (expand-file-name "~/.config/emacs/images/raven.png") 'png nil :scale 0.2 :align-to "center")) "\n")) - - ;;;; shell (require 'shell) -(keymap-global-set "C-z C-e" (lambda () - (interactive) - (let ((curr-buffer (current-buffer)) - (shell (shell))) - (switch-to-buffer curr-buffer) - (display-buffer (get-buffer shell)) - (switch-to-buffer-other-window shell)))) -(keymap-set eshell-mode-map "C-q" 'delete-window) ; mostly for side window (keymap-set shell-mode-map "C-c C-k" #'comint-clear-buffer) (setopt shell-command-prompt-show-cwd t shell-highlight-undef-enable t |