·direnv

使用 direnv 的指南 - 用于加载特定于目录的环境变量的 shell 扩展。在设置项目环境、创建 .envrc 文件、配置每个项目的环境变量、与 Python/Node/Ruby/Go 布局集成、使用 Nix flakes 或解决 macOS 和 Linux 上的环境加载问题时使用。

20安装·0热度·@julianobarbosa

安装

$npx skills add https://github.com/julianobarbosa/claude-code-skills --skill direnv

SKILL.md

This skill provides comprehensive guidance for working with direnv, covering installation, configuration, stdlib functions, and best practices for per-project environment management.

What is direnv? direnv is a shell extension that loads and unloads environment variables based on the current directory. When you cd into a directory with a .envrc file, direnv automatically loads the environment. When you leave, it unloads the changes.

Add the hook to your shell's config file. This is required for direnv to function.

使用 direnv 的指南 - 用于加载特定于目录的环境变量的 shell 扩展。在设置项目环境、创建 .envrc 文件、配置每个项目的环境变量、与 Python/Node/Ruby/Go 布局集成、使用 Nix flakes 或解决 macOS 和 Linux 上的环境加载问题时使用。 来源:julianobarbosa/claude-code-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/julianobarbosa/claude-code-skills --skill direnv
分类
</>开发工具
认证
收录时间
2026-02-04
更新时间
2026-02-18

快速解答

什么是 direnv?

使用 direnv 的指南 - 用于加载特定于目录的环境变量的 shell 扩展。在设置项目环境、创建 .envrc 文件、配置每个项目的环境变量、与 Python/Node/Ruby/Go 布局集成、使用 Nix flakes 或解决 macOS 和 Linux 上的环境加载问题时使用。 来源:julianobarbosa/claude-code-skills。

如何安装 direnv?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/julianobarbosa/claude-code-skills --skill direnv 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/julianobarbosa/claude-code-skills

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-04