mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 06:55:36 +02:00
Replace dirs and directories with maintained (#2949)
This commit is contained in:
@ -29,7 +29,7 @@ impl PathCompleter {
|
||||
{
|
||||
let home_prefix = format!("~{}", SEP);
|
||||
if base_dir_name.starts_with(&home_prefix) {
|
||||
let mut home_dir = dirs::home_dir().unwrap_or_else(|| PathBuf::from("~"));
|
||||
let mut home_dir = dirs_next::home_dir().unwrap_or_else(|| PathBuf::from("~"));
|
||||
home_dir.push(&base_dir_name[2..]);
|
||||
home_dir
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user