mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 00:13:21 +01:00
parent
362bb1bea3
commit
f14c0df582
@ -718,6 +718,18 @@ pub async fn cli(
|
||||
let _ = load_plugins(&mut context);
|
||||
|
||||
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
|
||||
.get("use_starship")
|
||||
.map(|x| x.is_true())
|
||||
|
@ -153,11 +153,6 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
}
|
||||
|
||||
None => {
|
||||
println!(
|
||||
"Welcome to Nushell {} (type 'help' for more info)",
|
||||
clap::crate_version!()
|
||||
);
|
||||
|
||||
let mut syncer = EnvironmentSyncer::new();
|
||||
let context = create_default_context(&mut syncer, true)?;
|
||||
futures::executor::block_on(nu_cli::cli(syncer, context))?;
|
||||
|
Loading…
Reference in New Issue
Block a user