mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-22 06:28:08 +01:00
Add chezmoi functions & poetry token
This commit is contained in:
parent
a1f578822f
commit
98360f4a61
3 changed files with 20 additions and 0 deletions
|
@ -20,6 +20,8 @@ set -gx GITLABBER_GIT_CONCURRENCY 10
|
|||
set -gx PYPI_USERNAME __token__
|
||||
set -gx PYPI_TOKEN {{ (bitwardenFields "item" "PyPi").token.value | quote }}
|
||||
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 }}
|
||||
|
||||
|
|
9
dot_config/fish/private_functions/chezmoiapply.fish
Normal file
9
dot_config/fish/private_functions/chezmoiapply.fish
Normal 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
|
9
dot_config/fish/private_functions/chezmoiupdate.fish
Normal file
9
dot_config/fish/private_functions/chezmoiupdate.fish
Normal 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
|
Loading…
Reference in a new issue