1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 22:57:46 +00:00

remove title because it breaks kitty (#215)

This commit is contained in:
Darren Schroeder 2022-05-05 06:56:47 -05:00 committed by GitHub
parent 30b8a449ae
commit ed4a2de962
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -521,11 +521,15 @@ export def git_prompt [] {
# osc2 some_string string_terminator aka (char osc)2;($some_string)(ansi st) or "\u001b];($some_string)\\"
# where string_terminator is \
# so you might want to play around with these settings a bit
let abbrev = ((path_abbrev_if_needed (home_abbrev $os.name) 30) | ansi strip)
#let abbrev = ((path_abbrev_if_needed (home_abbrev $os.name) 30) | ansi strip)
# $"\u001b]0;($abbrev)"
# note that this isn't ending properly with a bel or a st, that's
# because it makes the string echo to the screen as an empty line
$"(ansi osc)2;($abbrev)"
# turning off now since a similar thing is built into nushell + it breaks kitty
#$"(ansi osc)2;($abbrev)"
# return in record literal syntax to be used kind of like a tuple
# so we don't have to run this script more than once per prompt