Skip to content

Commit

Permalink
Autocomplete binary path (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinc authored Apr 10, 2022
1 parent dd2b20f commit 478faa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn shell_completer(line: &str) -> Vec<String> {

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());
Expand Down

0 comments on commit 478faa7

Please sign in to comment.