repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

nushell: fix wezterm hostname lookup

4ce112bb0116865be3d84d63e4b339f77bd000f7

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

nushell/modules/wezterm_integration.nu

Modified
27 27 # Emit OSC 7 so wezterm knows the current working directory.
28 28 # New tabs opened from this pane will use this as their cwd.
29 29 def __wezterm_osc7 [] {
30 - let hostname = (hostname)
30 + let hostname = (sys host).hostname
31 31 let cwd = ($env.PWD | str replace --all '\\' '/')
32 32 let osc = (ansi --osc $"7;file://($hostname)($cwd)")
33 33 print -n ($osc + (char bel))