macOS
brew install ondirlocal Homebrew formula metadata
sudo port install ondirMacPorts ports tree · sysutils/ondir/Portfile · 来源: api.github.com
安装
brew install ondirlocal Homebrew formula metadata
sudo port install ondirMacPorts ports tree · sysutils/ondir/Portfile · 来源: api.github.com
nix profile install nixpkgs#ondirnixpkgs package indexes · pkgs/by-name/on/ondir/package.nix · 来源: api.github.com
概览
Automatically execute scripts as you traverse directories
历史
OnDir is a small terminal automation utility for running directory-specific shell actions when a user enters, leaves, or passes through configured paths. Its core idea is deliberately narrow: pair shell startup hooks with entries in ~/.ondirrc so path traversal can change process-local state such as umask values, environment setup, or virtualenv activation.
The upstream documentation presents OnDir as a compact C and shell tool by Alec Thomas, with source tarballs from 0.1.0 through 0.2.2 published on the project page and a mirrored GitHub repository containing the README, man page, shell hooks, and configuration examples. The project stayed small by design; the README describes the behavior as simple but effective.
Users install shell hooks for Bash, tcsh, zsh, or fish and then define enter and leave sections in ~/.ondirrc. The examples cover a public_html umask change, multiple paths per section, tilde and environment-variable expansion, regular-expression path matching, and automatic activation or deactivation of Python virtual environments.
OnDir is an early Unix-style answer to per-directory environment automation: tiny, text-configured, and shell-integrated rather than a large daemon. For package nerds, it is interesting less for scale than for how long the directory-hook pattern has been packaged as a standalone CLI.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.ondirrc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ondir | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://swapoff.org/ondir.html
安装元数据
| 软件包键 | brew:ondir |
|---|---|
| 版本 | 0.2.4 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/ondir |
| 主页 | https://swapoff.org/ondir.html |
| 上游文档 | https://swapoff.org/ondir.html |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://swapoff.org/files/ondir/ondir-0.2.4.tar.gz |
| Bottle | 可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ondir |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
ondir 0.2.3+git20140220.55279f0-1
Automate tasks specific to certain directories in the shell
https://swapoff.org/ondir.html
sudo apt install ondirondir
nix profile install nixpkgs#ondirondir 0.2.3+git0.55279f03-1build1
Automate tasks specific to certain directories in the shell
sudo apt install ondirondir
sudo port install ondir来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.