mirror of
https://github.com/nushell/nushell
synced 2025-01-13 21:55:07 +00:00
parent
362bb1bea3
commit
f14c0df582
2 changed files with 12 additions and 5 deletions
|
@ -718,6 +718,18 @@ pub async fn cli(
|
||||||
let _ = load_plugins(&mut context);
|
let _ = load_plugins(&mut context);
|
||||||
|
|
||||||
let (mut rl, config) = set_rustyline_configuration();
|
let (mut rl, config) = set_rustyline_configuration();
|
||||||
|
|
||||||
|
let skip_welcome_message = config
|
||||||
|
.get("skip_welcome_message")
|
||||||
|
.map(|x| x.is_true())
|
||||||
|
.unwrap_or(false);
|
||||||
|
if !skip_welcome_message {
|
||||||
|
println!(
|
||||||
|
"Welcome to Nushell {} (type 'help' for more info)",
|
||||||
|
clap::crate_version!()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
let use_starship = config
|
let use_starship = config
|
||||||
.get("use_starship")
|
.get("use_starship")
|
||||||
.map(|x| x.is_true())
|
.map(|x| x.is_true())
|
||||||
|
|
|
@ -153,11 +153,6 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
None => {
|
None => {
|
||||||
println!(
|
|
||||||
"Welcome to Nushell {} (type 'help' for more info)",
|
|
||||||
clap::crate_version!()
|
|
||||||
);
|
|
||||||
|
|
||||||
let mut syncer = EnvironmentSyncer::new();
|
let mut syncer = EnvironmentSyncer::new();
|
||||||
let context = create_default_context(&mut syncer, true)?;
|
let context = create_default_context(&mut syncer, true)?;
|
||||||
futures::executor::block_on(nu_cli::cli(syncer, context))?;
|
futures::executor::block_on(nu_cli::cli(syncer, context))?;
|
||||||
|
|
Loading…
Reference in a new issue