Add vterm configurations
This commit is contained in:
@@ -73,8 +73,18 @@ prompt_function() {
|
|||||||
|
|
||||||
PS1="\$(prompt_function)"
|
PS1="\$(prompt_function)"
|
||||||
|
|
||||||
|
# Add doom emacs to path
|
||||||
export PATH=$PATH:$HOME/.emacs.d/bin/
|
export PATH=$PATH:$HOME/.emacs.d/bin/
|
||||||
|
|
||||||
export EDITOR="emacs"
|
export EDITOR="emacs"
|
||||||
export VISUAL="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
|
||||||
|
|||||||
Reference in New Issue
Block a user