Issues with Tilix and VTE #4674
-
Hello, After installing oh-my-posh, I had an issue with getting it to init via ~/.bashrc, despite it working perfectly fine as a command. It took me a couple of hours before I realized that one of my other bash configs might be interfering, so after going through the painstaking process of disabling config after config, I noticed that oh-my-posh somehow conflicts with Tilix's VTE Configuration.
I read through the discussions HERE, HERE, and HERE to try and resolve the issue on my own, but I don't know anything about any of this and this is all just information I tried to understand from reading vte.sh and This block in vte.sh should append __vte_osc7 to the PROMPT_COMMAND if it's an array, and __vte_prompt_command if it's not.
oh-my-posh init shows that it should prepend the PROMPT_COMMAND if the conditions in the first line are met, but PROMPT_COMMAND then seems to be a string and not an array so I'm guessing that if oh-my-posh is sourced first, vte will override it, but if vte is sourced first, oh-my-posh should just prepend?
I think I understand the problem, but this is where I'm stuck. Is there a way for me to get these two to play nicely together? Thanks for your time and I appreciate any help or suggestions you might have. :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I looked at VTE's docs and it states this:
That should imply that sourcing the script AFTER oh-my-posh init should preserve the prompt but you'll need to set |
Beta Was this translation helpful? Give feedback.
I looked at VTE's docs and it states this:
That should imply that sourcing the script AFTER oh-my-posh init should preserve the prompt but you'll need to set
"pwd": "osc7"
in oh-my-posh' configuration file.