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