Use full path to starship in all phases of init (#224)

This commit is contained in:
Bruno Bigras
2019-08-22 15:57:32 -04:00
committed by Kevin Song
parent 70d53ee7a9
commit 68cbcb91b7
2 changed files with 37 additions and 16 deletions
+2 -2
View File
@@ -113,9 +113,9 @@ fn main() {
("init", Some(sub_m)) => {
let shell_name = sub_m.value_of("shell").expect("Shell name missing.");
if sub_m.is_present("print_full_init") {
init::init_main(shell_name);
init::init_main(shell_name).expect("can't init_main");
} else {
init::init_stub(shell_name);
init::init_stub(shell_name).expect("can't init_stub");
}
}
("prompt", Some(sub_m)) => print::prompt(sub_m.clone()),