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 = ''
|
bashrcExtra = ''
|
||||||
|
|
||||||
# FNM
|
# FNM
|
||||||
eval "$(fnm env --use-on-cd --shell bash)"
|
eval "$(fnm env --use-on-cd --shell bash)"
|
||||||
|
|
||||||
|
|
@ -34,12 +33,12 @@
|
||||||
if [[ "$INSIDE_EMACS" = 'vterm' ]] \
|
if [[ "$INSIDE_EMACS" = 'vterm' ]] \
|
||||||
&& [[ -n "$EMACS_VTERM_PATH" ]] \
|
&& [[ -n "$EMACS_VTERM_PATH" ]] \
|
||||||
&& [[ -f "$EMACS_VTERM_PATH/etc/emacs-vterm-bash.sh" ]]; then
|
&& [[ -f "$EMACS_VTERM_PATH/etc/emacs-vterm-bash.sh" ]]; then
|
||||||
source "$EMACS_VTERM_PATH"
|
source "$EMACS_VTERM_PATH/etc/emacs-vterm-bash.sh"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
if [ -n "$INSIDE_EMACS" ]; then
|
if [ "$TERM" == "dumb" ]; then
|
||||||
PS1="[\u@\h:\w]\\$ "
|
PS1="[\u@\h:\w]\\$ "
|
||||||
else
|
else
|
||||||
source ~/.git-prompt.sh
|
source ~/.git-prompt.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue