Closed torqu3e closed 2 years ago
@torqu3e if you quit all terminal sessions and then reopen them does this issue go away?
Hey @torqu3e, I've looked into this more and I think the issue is related to PROMPT_COMMAND
.
I'm looking into it now. See #888 for more details.
The fix is to change this line:
PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME}:$(basename ${PWD})\007"'
to
PROMPT_COMMAND+='echo -ne "\033]0;${HOSTNAME}:$(basename ${PWD})\007"'
@mschrage changing that leads to an error on a new prompt, show below.
bash: __bp_installecho: command not found
Your comment pointed the fact that the prompt does not need to be set since starship dictates the prompt I use. Commenting the PS1 and PROMPT_COMMAND line has made fig work. Thank you for pointing it out. This issue is resolved.
Its also working with kitty
as well which is my primary terminal.
@mschrage sorry I take part of my previous comment back. The prompt was being set because kitty's or terminal's tab title comes from the prompt, removing that does not let me figure the difference between multiple tabs. Ideally I'd like for this to be solved and not stop using fig completely.
This will be fixed in the next release. In the meantime, try:
PROMPT_COMMAND+='; echo -ne "\033]0;${HOSTNAME}:$(basename ${PWD})\007"'
That is better as in the new window/tab does not break on the prompt but the title bar does not pick up the basename pwd
part with that.
Sanity checks
fig doctor
in the affected terminal sessionIssue Details
Description:
Fig only works right after the initial install, not after. Replicable in
vscode terminal
orterminal
. Does not integrate withkitty
at all (separate issue)Environment