mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 05:34:58 +02:00
Variable completions and better ls
This commit is contained in:
@ -36,6 +36,9 @@ impl Command for Ls {
|
||||
|
||||
let path = std::path::Path::new(&result);
|
||||
if path.is_dir() {
|
||||
if !result.ends_with(std::path::MAIN_SEPARATOR) {
|
||||
result.push(std::path::MAIN_SEPARATOR);
|
||||
}
|
||||
result.push('*');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user