diff options
author | Anders Rasmussen <divinegod@gmail.com> | 2017-02-14 13:22:59 +1100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-02-14 08:53:18 -0800 |
commit | c49d4a936553135f6326e91e62445a5e04186a80 (patch) | |
tree | 8cd0d6b595e23f543c36c8a5f85de99478796fe8 /src/tty.rs | |
parent | 24c32dc4004d1c67fe95f418b7737ec393898208 (diff) | |
download | alacritty-c49d4a936553135f6326e91e62445a5e04186a80.tar.gz alacritty-c49d4a936553135f6326e91e62445a5e04186a80.zip |
Add TERM config entry
Diffstat (limited to 'src/tty.rs')
-rw-r--r-- | src/tty.rs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -207,7 +207,10 @@ pub fn new<T: ToWinsize>(config: &Config, options: &Options, size: T) -> Pty { builder.env("USER", pw.name); builder.env("SHELL", shell.program()); builder.env("HOME", pw.dir); - builder.env("TERM", "xterm-256color"); // sigh + builder.env("TERM", "xterm-256color"); // default term until we can supply our own + for (key, value) in config.env().iter() { + builder.env(key, value); + } builder.before_exec(move || { // Create a new process group |