1
0
Fork 0

more mise and venv

This commit is contained in:
Von Random 2025-03-03 23:57:56 +02:00
parent cc6a4949a6
commit 99076ebc5f
2 changed files with 10 additions and 0 deletions

View file

@ -1,25 +0,0 @@
[[hooks.enter]]
shell = "fish"
script = """
set -gx YC_TOKEN (yc iam create-token)
set -gx YC_CLOUD_ID (yc config get cloud-id)
set -gx YC_FOLDER_ID (yc config get folder-id)
"""
[[hooks.leave]]
shell = "fish"
script = """
set -e YC_TOKEN YC_CLOUD_ID YC_FOLDER_ID
"""
[[hooks.enter]]
shell = "zsh"
script = """
export YC_TOKEN=$(yc iam create-token)
export YC_CLOUD_ID=$(yc config get cloud-id)
export YC_FOLDER_ID=$(yc config get folder-id)
"""
[[hooks.leave]]
shell = "zsh"
script = """
unset YC_TOKEN YC_CLOUD_ID YC_FOLDER_ID
"""