diff options
author | Thanos Apollo <[email protected]> | 2023-05-02 19:32:01 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-05-02 19:32:01 +0300 |
commit | 1cd0c1d5b48fe2f8a3769d39b3e48ccf8a161ac2 (patch) | |
tree | cf42288fe0914a3b1f54ae5a8e7ade2023f03854 /emacs.org | |
parent | 32e48dc73d70a5d7a2a6b701c2162d00f2924fc5 (diff) |
emacs: Update eshell prompt and aliases
Diffstat (limited to 'emacs.org')
-rwxr-xr-x | emacs.org | 31 |
1 files changed, 9 insertions, 22 deletions
@@ -72,7 +72,8 @@ Request the following packages: slime slime-company chatgpt - org-download)) + org-download + eshell-git-prompt)) #+end_src ** Installation & activation Set ~package-archives~, and install packages @@ -357,8 +358,7 @@ Hook with ~dired-mode~ #+begin_src emacs-lisp (add-hook 'dired-mode-hook 'all-the-icons-dired-mode) #+end_src -* Terminals -** Eshell +* Eshell #+begin_src emacs-lisp (use-package eshell :ensure nil @@ -366,27 +366,14 @@ Hook with ~dired-mode~ :config (defvar eshell-path-env (getenv "~/.local/bin"))) - (defun with-face (str &rest face-plist) - (propertize str 'face face-plist)) - - (defun apollo-eshell-prompt () - (let ((winter-blue "#3F3B6C") - (white-summer "#E5E5CB") - (green-night "#03C988") - (orange-summer "#FFB100") - (green-summer "#A3BB98") - (summer-sea "#2192FF") - (black "#000000")) - (concat - (with-face (concat "[" user-login-name) :foreground orange-summer :background black) - (with-face "@" :foreground orange-summer :background black) - (with-face (concat system-name "]\n") :foreground orange-summer :background black) - (with-face (concat "|" (eshell/pwd) ) :foreground "#F0E9D2" :background winter-blue) - (with-face (format-time-string " | %H:%M" (current-time)) :background winter-blue :foreground "#888") - (with-face "\n -> ")))) + + (eshell-git-prompt-use-theme 'powerline) + (eshell-syntax-highlighting-global-mode 1) + + (defalias 'open 'find-file) ;; (setq eshell-prompt-function 'apollo-eshell-prompt) - ;; (setq eshell-highlight-prompt t) + (setq eshell-highlight-prompt t) #+end_src * Org-mode ** org-make-toc |