Default config improvements (#4565)

* Default config improvements

* Finish cleanup

* Add some comments
This commit is contained in:
JT
2022-02-20 07:48:46 -05:00
committed by GitHub
parent 52ee1917ba
commit 643c5097d6
3 changed files with 118 additions and 32 deletions

View File

@ -84,7 +84,7 @@ pub(crate) fn read_config_file(
.expect("Failed to read user input");
match answer.to_lowercase().trim() {
"y" => {
"y" | "" => {
let mut output = File::create(&config_path).expect("Unable to create file");
let config_file = include_str!("default_config.nu");
write!(output, "{}", config_file).expect("Unable to write to config file");