Skip to content

Commit 10dc765

Browse files
committed
feat: bash completion
1 parent 40b8b4f commit 10dc765

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

avaiable/02_bash_completion.bash

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
source $HOME/.local/bash_completion.d/*
1+
# anything in $HOME/.local/bash_completion.d ending .bash get included
2+
source $HOME/.local/bash_completion.d/*.bash
3+
4+
# other environment specific scriots should not end .bash, e.g. see 87_django.bash

avaiable/87_django.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if [ ! -e "$HOME/.local/bash_completion.d/django_bash_completion" ]; then
2+
wget -O https://raw.githubusercontent.com/django/django/main/extras/django_bash_completion $HOME/.local/bash_completion.d/django_bash_completion
3+
fi
4+
5+
source $HOME/.local/bash_completion.d/django_bash_completion

0 commit comments

Comments
 (0)