Add chezmoi functions & poetry token

This commit is contained in:
Gabriel Augendre 2022-06-17 12:25:21 +02:00
parent a1f578822f
commit 98360f4a61
3 changed files with 20 additions and 0 deletions

View file

@ -20,6 +20,8 @@ set -gx GITLABBER_GIT_CONCURRENCY 10
set -gx PYPI_USERNAME __token__ set -gx PYPI_USERNAME __token__
set -gx PYPI_TOKEN {{ (bitwardenFields "item" "PyPi").token.value | quote }} set -gx PYPI_TOKEN {{ (bitwardenFields "item" "PyPi").token.value | quote }}
set -gx POETRY_PYPI_TOKEN_PYPI $PYPI_TOKEN set -gx POETRY_PYPI_TOKEN_PYPI $PYPI_TOKEN
set -gx POETRY_HTTP_BASIC_PYPI_USERNAME $PYPI_USERNAME
set -gx POETRY_HTTP_BASIC_PYPI_PASSWORD $PYPI_TOKEN
set -gx GITEA_TOKEN {{ (bitwardenFields "item" "git.augendre.info").fish_config_token.value | quote }} set -gx GITEA_TOKEN {{ (bitwardenFields "item" "git.augendre.info").fish_config_token.value | quote }}

View file

@ -0,0 +1,9 @@
function chezmoiapply
if not bw login --check
set -x BW_SESSION (bw login --raw)
end
if not bw unlock --check
set -x BW_SESSION (bw unlock --raw)
end
chezmoi apply
end

View file

@ -0,0 +1,9 @@
function chezmoiupdate
if not bw login --check
set -x BW_SESSION (bw login --raw)
end
if not bw unlock --check
set -x BW_SESSION (bw unlock --raw)
end
chezmoi update
end