-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OCS99 support to provide pwd to Windows Terminal #2337
Comments
If a feature is not directly related to prompt, and if it can be implemented with a single piece of code that works with all prompts, then it's out of scope for powerlevel10k. In other words, if something can be implemented as an independent plugin, it should be implemented as an independent plugin. The code snippet provided by Microsoft has a few bugs (some more serious than others) and has much bigger impact on performance than it has to. You can use this plugin instead: https://github.com/romkatv/windows-terminal-zsh-integration. If you are using zsh4humans, you don't need this plugin. Just make sure that you are on the latest version (run zstyle ':z4h:' term-shell-integration yes |
Thank you! Very helpful. |
Windows Terminal supports OSC99 to determine the current directory from the shell.
It would be nice if powerlevel10k had built-in support to add the OSC99 escape sequence to the prompt, so duplicating tabs and panes pick up the current directory in Windows Terminal. (
Shift+Ctrl+D
andShift+Alt+D
respectively.)The Microsoft docs recommend adding the following to your
~/.zshrc
to support this behaviour:Is this in scope to automatically support in powerlevel10k?
Related:
The text was updated successfully, but these errors were encountered: