mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-12-22 05:41:51 +01:00
Fix kdjango with pgcli
This commit is contained in:
parent
80fde827a1
commit
4c95c12536
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ function kdjango --description 'Pop into the shell of django pod of the current
|
|||
set command ./manage.py shell
|
||||
else if set -q _flag_d
|
||||
if kubectl exec -it $pod -- which pgcli &> /dev/null
|
||||
set command 'pgcli $(./manage.py sqldsn --quiet --style=uri)'
|
||||
set command sh -c 'pgcli $(./manage.py sqldsn --quiet --style=uri)'
|
||||
else
|
||||
set command ./manage.py dbshell
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue