fixes bash prompt inside emacs
This commit is contained in:
parent
04d362f4ea
commit
2abce0e8eb
1 changed files with 2 additions and 3 deletions
|
|
@ -26,7 +26,6 @@
|
|||
'';
|
||||
|
||||
bashrcExtra = ''
|
||||
|
||||
# FNM
|
||||
eval "$(fnm env --use-on-cd --shell bash)"
|
||||
|
||||
|
|
@ -34,12 +33,12 @@
|
|||
if [[ "$INSIDE_EMACS" = 'vterm' ]] \
|
||||
&& [[ -n "$EMACS_VTERM_PATH" ]] \
|
||||
&& [[ -f "$EMACS_VTERM_PATH/etc/emacs-vterm-bash.sh" ]]; then
|
||||
source "$EMACS_VTERM_PATH"
|
||||
source "$EMACS_VTERM_PATH/etc/emacs-vterm-bash.sh"
|
||||
fi
|
||||
'';
|
||||
|
||||
initExtra = ''
|
||||
if [ -n "$INSIDE_EMACS" ]; then
|
||||
if [ "$TERM" == "dumb" ]; then
|
||||
PS1="[\u@\h:\w]\\$ "
|
||||
else
|
||||
source ~/.git-prompt.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue