Skip to content

Fish-shell autocompletion includes filenames - #174

Merged
lhendrick-t10 merged 1 commit into
trek10inc:masterfrom
Prophecy67:master
Sep 11, 2023
Merged

Fish-shell autocompletion includes filenames#174
lhendrick-t10 merged 1 commit into
trek10inc:masterfrom
Prophecy67:master

Conversation

@Prophecy67

Copy link
Copy Markdown
Contributor

The fish-shell autocompletion works marvelously, though there is one slight annoyance and a rather easy fix.

The file /home/$USER/.config/fish/completions/awsume.fish contains the following:

#Auto-Complete function for AWSume
complete --command awsume --arguments '(awsume-autocomplete)'
This however also means that when you use tab completion, you'll also include the CWD's files. Naturally, you cannot awsume to the files 😁

An easy fix would be to add the -f argument, not allowing files:

As per:

-f or --no-files says that this completion may not be followed by a filename.

Source:

https://fishshell.com/docs/current/cmds/complete.html

Related to #173

Updating the function FISH_AUTOCOMPLETE_SCRIPT to not include files in Fish-Shell's autocompletion, making it easier to swap roles as it's only accountnames.
@Prophecy67
Prophecy67 marked this pull request as ready for review January 25, 2022 07:07
@lhendrick-t10
lhendrick-t10 merged commit 8664b50 into trek10inc:master Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants