Allow symlinks in shell program completions

Co-authored-by: thort <thort@compass-vm>
pull/5393/head
Michael Davis 2025-07-11 10:30:47 -04:00
parent ba04f53830
commit 532f241287
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -692,7 +692,8 @@ pub mod completers {
.flatten() .flatten()
.filter_map(|res| { .filter_map(|res| {
let entry = res.ok()?; let entry = res.ok()?;
if entry.metadata().ok()?.is_file() { let metadata = entry.metadata().ok()?;
if metadata.is_file() || metadata.is_symlink() {
entry.file_name().into_string().ok() entry.file_name().into_string().ok()
} else { } else {
None None