Variable completions and better ls

This commit is contained in:
JT
2021-10-05 15:46:24 +13:00
parent 14426433aa
commit 31ce8c1e33
3 changed files with 39 additions and 2 deletions

View File

@ -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('*');
}