mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-03-31 03:05:32 +08:00
chore(dev): update environment and tooling configuration
This commit is contained in:
21
.envrc
21
.envrc
@@ -2,11 +2,18 @@
|
||||
|
||||
export DIRENV_WARN_TIMEOUT=20s
|
||||
|
||||
eval "$(devenv direnvrc)"
|
||||
# 尝试加载 devenv 的 direnv 配置
|
||||
if command -v devenv >/dev/null 2>&1; then
|
||||
# 如果存在 devenv
|
||||
eval "$(devenv direnvrc)"
|
||||
|
||||
# `use devenv` supports the same options as the `devenv shell` command.
|
||||
#
|
||||
# To silence all output, use `--quiet`.
|
||||
#
|
||||
# Example usage: use devenv --quiet --impure --option services.postgres.enable:bool true
|
||||
use devenv
|
||||
# `use devenv` 支持和 `devenv shell` 相同的选项
|
||||
# 示例:use devenv --quiet --impure --option services.postgres.enable:bool true
|
||||
use devenv
|
||||
else
|
||||
# 如果不存在 devenv,则加载自己的 fallback 配置
|
||||
echo "devenv not found, loading fallback configuration..."
|
||||
|
||||
export UV_PROJECT_ENVIRONMENT="/workspace/envs/mini-nav"
|
||||
export MY_DEV_ENV=1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user