From 1e3306ab574ab1faf13e7735b0d56bf5dd9c7f21 Mon Sep 17 00:00:00 2001 From: sterni Date: Tue, 10 May 2022 16:13:22 +0200 Subject: feat(sterni/emacs): use bash login shell for M-x shell bash (unlike fish) doesn't break down if TERM=dumb which is the only one I'll be using in emacs (I want to reduce my usage of things depending on ANSI escape sequence to a minimum, for stuff that needs it I still have foot). bash is started in login shell mode so /etc/profile is sourced which will a) enable direnv support and b) setup some tweaks (relating to PAGER etc.) if TERM=dumb. Since I use a semicolon for a prompt in (ba)sh, shell-prompt-pattern needs to be adjusted. Change-Id: If58b6d1edf1d9ab1883cb51c27729e23d889b16c Reviewed-on: https://cl.tvl.fyi/c/depot/+/5570 Tested-by: BuildkiteCI Reviewed-by: sterni Autosubmit: sterni --- users/sterni/emacs/init.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'users/sterni/emacs/init.el') diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el index f3942c2f0f..4e2baef921 100644 --- a/users/sterni/emacs/init.el +++ b/users/sterni/emacs/init.el @@ -114,6 +114,11 @@ ;; man (setq Man-notify-method 'pushy) ; display man page in current window +;; shell + +; default, but allows ';' as prompt +(setq shell-prompt-pattern "^[^#$%>;\n]*[#$%>;] *") + ;;; Configure packages (require 'use-package) -- cgit 1.4.1