aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorNiklas Claesson <nicke.claesson@gmail.com>2017-01-23 09:00:52 +0100
committerJoe Wilm <jwilm@users.noreply.github.com>2017-01-23 21:08:00 -0800
commit6e51e9e27b384e68bda85f1a35f5c9219bb49400 (patch)
tree01b8e9d482eb95e3658494c380f11874c97f82bf /src/config.rs
parente118431d16d64543f5c2904af109ae9ba7e2965f (diff)
downloadalacritty-6e51e9e27b384e68bda85f1a35f5c9219bb49400.tar.gz
alacritty-6e51e9e27b384e68bda85f1a35f5c9219bb49400.zip
Change to process::Command
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index e9173f6c..0e32e42c 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -197,7 +197,7 @@ pub struct Config {
mouse_bindings: Vec<MouseBinding>,
/// Path to a shell program to run on startup
- shell: Option<PathBuf>,
+ shell: Option<String>,
/// Path where config was loaded from
config_path: Option<PathBuf>,
@@ -902,10 +902,10 @@ impl Config {
.map(|p| p.as_path())
}
- pub fn shell(&self) -> Option<&Path> {
+ pub fn shell(&self) -> Option<&str> {
self.shell
.as_ref()
- .map(PathBuf::as_path)
+ .map(String::as_str)
}
fn load_from<P: Into<PathBuf>>(path: P) -> Result<Config> {