aboutsummaryrefslogtreecommitdiff
path: root/src/tty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty.rs')
-rw-r--r--src/tty.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tty.rs b/src/tty.rs
index ca5fad78..39d3deea 100644
--- a/src/tty.rs
+++ b/src/tty.rs
@@ -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