From 4c95c12536ff07beb6796ea66bad96dd887bce8c Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 19 Apr 2022 15:22:35 +0200 Subject: [PATCH] Fix kdjango with pgcli --- dot_config/fish/private_functions/private_kdjango.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/fish/private_functions/private_kdjango.fish b/dot_config/fish/private_functions/private_kdjango.fish index fb313eb..f6c2855 100644 --- a/dot_config/fish/private_functions/private_kdjango.fish +++ b/dot_config/fish/private_functions/private_kdjango.fish @@ -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