diff options
author | bd <bdunahu@colostate.edu> | 2024-03-24 18:29:28 -0600 |
---|---|---|
committer | bd <bdunahu@colostate.edu> | 2024-03-24 18:29:28 -0600 |
commit | 1ae1bfe0021b51a9877943a3713ebdb3d9c52b8f (patch) | |
tree | f7ae1b9d00902d47e307af84050c9cb462cba909 | |
parent | 9fd40b596a528aff48683b0cd3f7a6f60ec49b13 (diff) |
Partial changes to make eshell more usable, Popper.el standard
-rw-r--r-- | .config/emacs/modules/bd--shells.el | 30 | ||||
-rw-r--r-- | .config/guix/modules/shell.scm | 7 |
2 files changed, 17 insertions, 20 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 diff --git a/.config/guix/modules/shell.scm b/.config/guix/modules/shell.scm index 03db4fb..69303bd 100644 --- a/.config/guix/modules/shell.scm +++ b/.config/guix/modules/shell.scm @@ -21,7 +21,6 @@ ("rm" . "rm -i") ("vi" . "vim") ("ytta" . "yt-dlp --extract-audio --format bestaudio/best") - ("yttv" . "yt-dlp -f b"))))) - (simple-service 'my-env-vars-service - home-environment-variables-service-type - `(("BROWSER" . "icecat"))))) + ("yttv" . "yt-dlp -f b"))) + (environment-variables + '(("BROWSER" . "icecat"))))))) |