Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Update bash completion to treat completions as filenames and abbrevia…
Browse files Browse the repository at this point in the history
…te them
  • Loading branch information
DavidGamba committed Jun 14, 2020
1 parent d873c19 commit 2041b41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function _cliBookmarks() {
COMPREPLY=(`cli-bookmarks --completion-current ${2} --completion-previous ${3}`)
return 0
}
complete -o nospace -F _cliBookmarks cb
complete -o filenames -o nospace -F _cliBookmarks cb
----

The script above can be obtained from: https://raw.githubusercontent.com/DavidGamba/cli-bookmarks/master/cli-bookmarks.bash
Expand Down
2 changes: 1 addition & 1 deletion cli-bookmarks.bash
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ function _cliBookmarks() {
COMPREPLY=(`cli-bookmarks --completion-current ${2} --completion-previous ${3}`)
return 0
}
complete -o nospace -F _cliBookmarks cb
complete -o filenames -o nospace -F _cliBookmarks cb

0 comments on commit 2041b41

Please sign in to comment.