mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-05 04:47:58 +00:00
fix(configure): fix launching .cmd editors (#2635)
This commit is contained in:
parent
fabf9c6fb7
commit
603da24852
@ -135,8 +135,9 @@ pub fn write_configuration(table: &mut Table) {
|
||||
pub fn edit_configuration() {
|
||||
let config_path = get_config_path();
|
||||
let editor_cmd = shell_words::split(&get_editor()).expect("Unmatched quotes found in $EDITOR.");
|
||||
let editor_path = which::which(&editor_cmd[0]).expect("Unable to locate editor in $PATH.");
|
||||
|
||||
let command = Command::new(&editor_cmd[0])
|
||||
let command = Command::new(editor_path)
|
||||
.args(&editor_cmd[1..])
|
||||
.arg(config_path)
|
||||
.status();
|
||||
|
Loading…
Reference in New Issue
Block a user