mirror of
https://github.com/nushell/nushell
synced 2025-01-14 06:04:09 +00:00
write the config after removing a key
This commit is contained in:
parent
5d34e3a37d
commit
f5afbe8984
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ pub fn config(
|
|||
|
||||
if result.contains_key(&key) {
|
||||
result.remove(&key);
|
||||
config::write_config(&result)?;
|
||||
} else {
|
||||
return Err(ShellError::string(&format!(
|
||||
"{} does not exist in config",
|
||||
|
|
Loading…
Reference in a new issue