Skip to content

Commit

Permalink
try fix bash completion
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Jan 7, 2025
1 parent 2a0d638 commit 077356b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions django_typer/templates/shell_complete/bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# we need to pass these to the complete script - they may be necessary to find the command!
local settings_option=""
local pythonpath_option=""

COMP_WORDBREAKS="${COMP_WORDBREAKS//=/}"

for ((i=0; i<COMP_CWORD; i++)); do
case "${COMP_WORDS[i]}" in
Expand Down
2 changes: 1 addition & 1 deletion tests/shellcompletion/test_bash.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class BashTests(_ScriptCompleteTestCase, TestCase):
shell = "bash"
directory = Path("~/.bash_completions").expanduser()
interactive_opt = "-i"
tabs = "\t\t\t"
tabs = "\t"

environment = [
f"export DJANGO_SETTINGS_MODULE=tests.settings.completion",
Expand Down

0 comments on commit 077356b

Please sign in to comment.