From 9e55849ae1e8f6c14301a1fa60c0d38a7cd46300 Mon Sep 17 00:00:00 2001 From: Max Regan Date: Tue, 22 Mar 2022 08:06:09 -0700 Subject: [PATCH] Add vterm configurations --- .mgr_config/.bashrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.mgr_config/.bashrc b/.mgr_config/.bashrc index cda9411..b3f5624 100644 --- a/.mgr_config/.bashrc +++ b/.mgr_config/.bashrc @@ -73,8 +73,18 @@ prompt_function() { PS1="\$(prompt_function)" - +# Add doom emacs to path export PATH=$PATH:$HOME/.emacs.d/bin/ export EDITOR="emacs" export VISUAL="emacs" + +# Special sauce for better vterm integration in emacs +if [[ "$INSIDE_EMACS" = 'vterm' ]] \ + && [[ -n ${EMACS_VTERM_PATH} ]] \ + && [[ -f ${EMACS_VTERM_PATH}/etc/emacs-vterm-bash.sh ]]; then + source ${EMACS_VTERM_PATH}/etc/emacs-vterm-bash.sh + + alias find-file="vterm_cmd find-file" + alias magit="vterm_cmd magit" +fi