mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
slave: set $TERM_PROGRAM and $TERM_PROGRAM_VERSION environment variables
These are already being set by iTerm2, WezTerm, tmux and likely some others. Even though using yet more environment variables seems rather questionable, if we don't set these we run the risk of inheriting them from other terminals. See also: *97a6078df8/sources/PTYSession.m (L2568-2570)*1d0f68dee9/environ.c (L263-L264)* https://github.com/search?q=TERM_PROGRAM&type=code
This commit is contained in:
parent
9f3ce9236f
commit
5b2f02d826
5 changed files with 28 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ patch=$(echo "${new_version}" | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+).*/\3/')
|
|||
extra=$(echo "${new_version}" | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)(-([0-9]+-g[a-z0-9]+) .*)?.*/\5/')
|
||||
|
||||
new_version="#define FOOT_VERSION \"${new_version}\"
|
||||
#define FOOT_VERSION_SHORT \"${git_version:-${default_version}}\"
|
||||
#define FOOT_MAJOR ${major}
|
||||
#define FOOT_MINOR ${minor}
|
||||
#define FOOT_PATCH ${patch}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue