Shell Integration for OSC133 does not work in wezterm #6090
Unanswered
saumyajyoti
asked this question in
Troubleshoot
Replies: 2 comments
-
@saumyajyoti other than the styling inside PowerShell, we print the exact same sequences. So I don't think this is a bug for oh-my-posh. I will adjust to use the same PowerShell code sequence for |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the quick reply. It will be good anyone in community can share if they are able to get it working in WezTerm in Windows . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Code of Conduct
What happened?
The OMP Prompt with Shell Integration works fine with Windows Terminal. But not working with WezTerm.
But the other way of shell integration works in wezterm e.g. https://github.com/HeyItsGilbert/dotfiles/blob/main/dot_local/share/powershell/Scripts/ShellIntegration.ps1#L46
Theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"gb_bright_aqua": "#8ec07c",
"gb_bright_blue": "#83a598",
"gb_bright_green": "#b8bb26",
"gb_bright_orange": "#fe8019",
"gb_bright_purple": "#d3869b",
"gb_bright_red": "#fb4934",
"gb_bright_yellow": "#fabd2f",
"gb_dark0": "#282828",
"gb_dark0_hard": "#1d2021",
"gb_dark0_soft": "#32302f",
"gb_dark1": "#3c3836",
"gb_dark2": "#504945",
"gb_dark3": "#665c54",
"gb_dark4": "#7c6f64",
"gb_dark4_256": "#7c6f64",
"gb_faded_aqua": "#427b58",
"gb_faded_blue": "#076678",
"gb_faded_green": "#79740e",
"gb_faded_orange": "#af3a03",
"gb_faded_purple": "#8f3f71",
"gb_faded_red": "#9d0006",
"gb_faded_yellow": "#b57614",
"gb_gray_244": "#928374",
"gb_gray_245": "#928374",
"gb_light0": "#fbf1c7",
"gb_light0_hard": "#f9f5d7",
"gb_light0_soft": "#f2e5bc",
"gb_light1": "#ebdbb2",
"gb_light2": "#d5c4a1",
"gb_light3": "#bdae93",
"gb_light4": "#a89984",
"gb_light4_256": "#a89984",
"gb_neutral_aqua": "#689d6a",
"gb_neutral_blue": "#458588",
"gb_neutral_green": "#98971a",
"gb_neutral_orange": "#d65d0e",
"gb_neutral_purple": "#b16286",
"gb_neutral_red": "#cc241d",
"gb_neutral_yellow": "#d79921"
},
"var": {
"Dir": "📂",
"Documents": "📝",
"Downloads": "📥",
"Duration": "\u231b",
"Exit": "\u21a9\ufe0f",
"GitHub": "\ueba1",
"Home": "🏠",
"Host": " ",
"LeftDelim": "\ue0b3",
"LeftSep": "\ue0b2",
"LeftSepRound": "\ue0b6",
"Music": "🎵",
"Pictures": "🖼\ufe0f",
"RightDelim": "\ue0b1",
"RightSep": "\ue0b0",
"RightSepRound": "\ue0b4",
"Tag": "🔖 ",
"Time": "🕓",
"root": "🔴",
"ssh": "🌐",
"user": "👤"
},
"secondary_prompt": {
"template": "-> ",
"foreground": "p:gb_light3",
"background": "transparent"
},
"console_title_template": "{{if eq .Shell "cmd"}}\uebc4 {{end}}{{if eq .Shell "pwsh"}}\udb81\udfb7 {{end}}{{ .Folder }} \uf108 {{.HostName}}",
"pwd": "osc7",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"leading_diamond": "\ue0ba",
"trailing_diamond": "\ue0b0",
"template": "{{if .Root}}{{.Var.root}}{{else}}{{.Var.user}}{{end}}{{.UserName}} {{.Var.Host}}{{ .HostName }}{{ if .SSHSession }} {{.Var.ssh}}{{ end }}",
"foreground": "p:gb_dark0_hard",
"background": "p:gb_bright_purple",
"type": "session",
"style": "diamond"
},
{
"properties": {
"cache_duration": "none",
"folder_icon": "\ueaf7",
"folder_separator_icon": " \ue0b1 ",
"home_icon": "🏠",
"max_depth": 2,
"max_width": 6,
"mixed_threshold": 8,
"style": "mixed"
},
"leading_diamond": "<transparent,#427b58>\ue0b0</>",
"trailing_diamond": "\ue0b0",
"template": "<#fabd2f,#427b58>{{.Var.Dir}}</><#427b58,p:gb_bright_aqua>{{.Var.RightSep}}</><transparent,p:gb_bright_aqua> {{ .Path}}</>",
"foreground": "transparent",
"background": "p:gb_bright_aqua",
"type": "path",
"style": "diamond"
},
{
"properties": {
"branch_max_length": 35,
"cache_duration": "none",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "\ue0b0",
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }} -> {{.Upstream}}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf51e {{ .StashCount }}{{ end }} ",
"foreground": "#193549",
"background": "#fffb38",
"type": "git",
"style": "diamond",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
]
},
{
"properties": {
"cache_duration": "none",
"fetch_version": true
},
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"background": "#6CA35E",
"type": "node",
"style": "powerline"
},
{
"properties": {
"cache_duration": "none",
"display_mode": "files",
"fetch_virtual_env": false
},
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"background": "#FFDE57",
"type": "python",
"style": "powerline"
},
{
"properties": {
"cache_duration": "none"
},
"template": " \uf0ad ",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"background": "#ffff66",
"type": "root",
"style": "powerline"
},
{
"properties": {
"always_enabled": true,
"cache_duration": "none"
},
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "\ue0b4",
"template": "{{ .Var.Duration }}{{ .FormattedMs }}",
"foreground": "#ffffff",
"background": "#83769c",
"type": "executiontime",
"style": "diamond"
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4 ",
"template": "{{.Var.Time}}{{ .CurrentDate | date .Format }}",
"foreground": "#111111",
"background": "#2e9599",
"type": "time",
"style": "diamond",
"invert_powerline": true
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none",
"mapped_shell_names": {
"bash": "<p:gb_light4,transparent>\ue0be</><p:gb_faded_blue,p:gb_light4>\uebca \ue691</><p:gb_light4,transparent>\ue0b0</>",
"cmd": "<p:gb_neutral_aqua,transparent>\ue0be</><p:gb_light0_hard,p:gb_neutral_aqua>\uebc4 λ</><p:gb_neutral_aqua,transparent>\ue0b0</>",
"nu": "<p:gb_neutral_yellow,transparent>\ue0be</><p:gb_light0,p:gb_neutral_yellow>~> nu</><p:gb_neutral_yellow,transparent>\ue0b0</>",
"pwsh": "<#0077c2,transparent>\ue0be</><p:gb_light0,#0077c2>\uebc7 PS</><#0077c2,transparent>\ue0b0</>"
}
},
"template": "{{ .Name }}",
"foreground": "p:gb_light0",
"background": "#0077c2",
"type": "shell",
"style": "plain"
},
{
"properties": {
"always_enabled": true,
"cache_duration": "none"
},
"template": "\ue285\ue285",
"foreground": "#22da6e",
"type": "exit",
"style": "plain",
"foreground_templates": [
"{{ if gt .Code 0 }}#ef5350{{ end }}"
]
}
],
"newline": true
}
],
"version": 3,
"final_space": true,
"shell_integrationtrue": true
}
What OS are you seeing the problem on?
Windows
Which shell are you using?
cmd, powershell
Log output
Beta Was this translation helpful? Give feedback.
All reactions