From 478faa7f27b5e1a4ca9404f5bf57a6eb7a8b64d4 Mon Sep 17 00:00:00 2001 From: Vincent Ollivier Date: Sun, 10 Apr 2022 08:39:51 +0200 Subject: [PATCH] Autocomplete binary path (#324) --- src/usr/shell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/shell.rs b/src/usr/shell.rs index fb294ed7..132c3c28 100644 --- a/src/usr/shell.rs +++ b/src/usr/shell.rs @@ -29,7 +29,7 @@ fn shell_completer(line: &str) -> Vec { let args = split_args(line); let i = args.len() - 1; - if args.len() == 1 { // Autocomplete command + if args.len() == 1 && !args[0].starts_with("/") { // Autocomplete command for &cmd in &AUTOCOMPLETE_COMMANDS { if let Some(entry) = cmd.strip_prefix(args[i]) { entries.push(entry.into());