diff options
author | Jason Shirk <jason@truewheels.net> | 2019-01-02 13:40:32 -0800 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-01-02 21:40:32 +0000 |
commit | 2e968ae0add24519237b24a1ce8ed0d79f13e749 (patch) | |
tree | 09bdff0dcdcf47a1351d7e5791167cee9d61d986 /src/tty | |
parent | 9133f4d3272a2795c20936c83cada2c15f599d06 (diff) | |
download | alacritty-2e968ae0add24519237b24a1ce8ed0d79f13e749.tar.gz alacritty-2e968ae0add24519237b24a1ce8ed0d79f13e749.zip |
Change default Windows shell to PowerShell
Update the Windows shell settings and comments so they look familiar to
Windows users, but comment out the shell settings for consistency with
Linux and Mac.
Stop checking COMSPEC when the configuration file does not specify which
shell to use, and just default to PowerShell.
Diffstat (limited to 'src/tty')
-rw-r--r-- | src/tty/windows/conpty.rs | 3 | ||||
-rw-r--r-- | src/tty/windows/winpty.rs | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/tty/windows/conpty.rs b/src/tty/windows/conpty.rs index b16a61c4..755846e8 100644 --- a/src/tty/windows/conpty.rs +++ b/src/tty/windows/conpty.rs @@ -14,7 +14,6 @@ use super::{process_should_exit, Pty, HANDLE}; -use std::env; use std::i16; use std::mem; use std::os::windows::io::IntoRawHandle; @@ -212,7 +211,7 @@ pub fn new<'a>( } // Get process commandline - let default_shell = &Shell::new(env::var("COMSPEC").unwrap_or_else(|_| "cmd".into())); + let default_shell = &Shell::new("powershell"); let shell = config.shell().unwrap_or(default_shell); let initial_command = options.command().unwrap_or(shell); let mut cmdline = initial_command.args().to_vec(); diff --git a/src/tty/windows/winpty.rs b/src/tty/windows/winpty.rs index a3a45e39..9daa88d1 100644 --- a/src/tty/windows/winpty.rs +++ b/src/tty/windows/winpty.rs @@ -18,7 +18,6 @@ use std::io; use std::fs::OpenOptions; use std::os::windows::io::{FromRawHandle, IntoRawHandle}; use std::os::windows::fs::OpenOptionsExt; -use std::env; use std::sync::Arc; use std::u16; @@ -96,7 +95,7 @@ pub fn new<'a>( let (conin, conout) = (winpty.conin_name(), winpty.conout_name()); // Get process commandline - let default_shell = &Shell::new(env::var("COMSPEC").unwrap_or_else(|_| "cmd".into())); + let default_shell = &Shell::new("powershell"); let shell = config.shell().unwrap_or(default_shell); let initial_command = options.command().unwrap_or(shell); let mut cmdline = initial_command.args().to_vec(); |