forked from extern/nushell
write the config after removing a key
This commit is contained in:
parent
5d34e3a37d
commit
f5afbe8984
@ -111,6 +111,7 @@ pub fn config(
|
|||||||
|
|
||||||
if result.contains_key(&key) {
|
if result.contains_key(&key) {
|
||||||
result.remove(&key);
|
result.remove(&key);
|
||||||
|
config::write_config(&result)?;
|
||||||
} else {
|
} else {
|
||||||
return Err(ShellError::string(&format!(
|
return Err(ShellError::string(&format!(
|
||||||
"{} does not exist in config",
|
"{} does not exist in config",
|
||||||
|
Loading…
Reference in New Issue
Block a user