Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Següent revisió | Revisió prèvia | ||
| linux:zsh:oh-my-zsh:autoenv [02/03/2021 13:57] – creat mate | linux:zsh:oh-my-zsh:autoenv [27/11/2024 03:20] (actual) – [zsh-autoenv] mate | ||
|---|---|---|---|
| Línia 1: | Línia 1: | ||
| = zsh-autoenv | = zsh-autoenv | ||
| - | == azure | + | /via: [[https:// |
| - | <code bash ; /> | + | == configuration |
| + | * AUTOENV_FILE_ENTER: | ||
| + | * AUTOENV_FILE_LEAVE: | ||
| + | * AUTOENV_LOOK_UPWARDS: | ||
| + | * AUTOENV_HANDLE_LEAVE: | ||
| + | * AUTOENV_DISABLED: | ||
| + | * AUTOENV_DEBUG: | ||
| + | * 0: no debug messages | ||
| + | * 1: generic debug logging | ||
| + | * 2: more verbose messages messages about adding/ | ||
| + | * 3: everything | ||
| + | sets xtrace option (set -x) while sourcing env files. Default: 0 | ||
| + | |||
| + | == usage | ||
| + | * '' | ||
| + | * $AUTOENV_EDITOR, | ||
| + | |||
| + | == help | ||
| + | * **autostash**: | ||
| + | * sobreescribe una variable de entorno y la vuelve a dejar como estaba al salir | ||
| + | * **autoenv_source_parent** | ||
| + | * ejecuta los ficheros **.autoenv.zsh** de los directorios superiores | ||
| + | * opcionalmente podemos pasarle un parámetro '' | ||
| + | * **autoenv_append_path**: | ||
| + | * **autoenv_prepend_path**: | ||
| + | * **autoenv_remove_path**: | ||
| + | |||
| + | == azure example | ||
| + | <code bash; /> | ||
| autostash ARM_ACCESS_KEY=< | autostash ARM_ACCESS_KEY=< | ||
| echo "auto environment enabled (infraestructure)" | echo "auto environment enabled (infraestructure)" | ||
| </ | </ | ||
| - | <code bash ; / | + | <code bash; / |
| autoenv_source_parent ../.. | autoenv_source_parent ../.. | ||
| az account set --subscription "XXX -PRO - Subscription" | az account set --subscription "XXX -PRO - Subscription" | ||
| echo "auto environment enabled (pro)" | echo "auto environment enabled (pro)" | ||
| </ | </ | ||
| - | <code bash ; /aks> | + | <code bash; /aks> |
| autoenv_source_parent ../.. | autoenv_source_parent ../.. | ||
| autostash ENV_SUBS=" | autostash ENV_SUBS=" | ||