Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Fix and document autocompletion #94

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doc/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,9 @@ REM on all subsequent commands the default port `com3`would be assumed

nodemcu-uploader file list
```

### Using autocompletion (on Linux)
There is an autocompletion file for bash, in [bash_completion.d/nodemcu_uploader](bash_completion.d/nodemcu_uploader)
You can source this file:
`source doc/bash_completion.d/nodemcu_uploader`
or if you want: permanently install it on your Linux system in `/etc/bash_completion.d/`
2 changes: 1 addition & 1 deletion doc/bash_completion.d/nodemcu_uploader
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ _nodemcu_uploader() {
return 0
}

complete -F _nodemcu_uploader nodemcu-uploader
complete -F _nodemcu_uploader nodemcu-uploader nodemcu-uploader.py