mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 07:47:09 +08:00

I spent some time figuring out $TERM_PROGRAM_VERSION and Terminal.app's capabilities over time. [1] Only use OSC 7 if running on the version of Terminal.app that added it or newer. In the past this would have been harder because `test` couldn't do float comparisons. cleanup: Don't bother setting a local $TERM_PROGRAM if it's unset: quoting is enough to keep test happy. For the version numbers, 0"$var" is safe against unset variables for numerical comparisons. [1]: https://github.com/fish-shell/fish-shell/wiki/Terminal.app-characteristics