diff options
author | Nick Young <nick@nickwb.net> | 2019-09-06 02:45:04 +1000 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-09-05 12:45:04 -0400 |
commit | eb724279da21feca8438a40249d1b2d47e8ca312 (patch) | |
tree | de4642c75b612b0bc817905cf90e711846c3eee5 /tests/testsuite/common.rs | |
parent | 4f17bae3157d8ddd82af7c630f5ba65de0e8cb90 (diff) |
feat: Adds Git State module for showing "REBASING 2/3", etc. (#276)
- Adds the git_state module.
- Adds git_state to the default prompt order
- Updates the documentation to describe the git_state module
Diffstat (limited to 'tests/testsuite/common.rs')
-rw-r--r-- | tests/testsuite/common.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/testsuite/common.rs b/tests/testsuite/common.rs index 0f611a209..6698a1d94 100644 --- a/tests/testsuite/common.rs +++ b/tests/testsuite/common.rs @@ -2,7 +2,7 @@ use lazy_static::lazy_static; use std::io::prelude::*; use std::path::{Path, PathBuf}; use std::process::Command; -use std::{env, io, process}; +use std::{env, fs, io, process}; lazy_static! { static ref MANIFEST_DIR: &'static Path = Path::new(env!("CARGO_MANIFEST_DIR")); @@ -25,7 +25,8 @@ pub fn render_prompt() -> process::Command { /// Render a specific starship module by name pub fn render_module(module_name: &str) -> process::Command { - let mut command = process::Command::new("./target/debug/starship"); + let binary = fs::canonicalize("./target/debug/starship").unwrap(); + let mut command = process::Command::new(binary); command .arg("module") |