macOS
brew install ondirlocal Homebrew formula metadata
sudo port install ondirMacPorts ports tree · sysutils/ondir/Portfile · source: api.github.com
brew
Automatically execute scripts as you traverse directories. Version 0.2.4 via Homebrew; verified from local package data.
install
brew install ondirlocal Homebrew formula metadata
sudo port install ondirMacPorts ports tree · sysutils/ondir/Portfile · source: api.github.com
sudo apt install ondirDebian stable package indexes · ondir · source: deb.debian.org
nix profile install nixpkgs#ondirnixpkgs package indexes · pkgs/by-name/on/ondir/package.nix · source: api.github.com
overview
Automatically execute scripts as you traverse directories
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
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.
~/.ondirrcexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
ondir | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://swapoff.org/ondir.html
install metadata
| Package key | brew:ondir |
|---|---|
| Version | 0.2.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/ondir |
| Homepage | https://swapoff.org/ondir.html |
| Upstream docs | https://swapoff.org/ondir.html |
| License | GPL-2.0-or-later |
| Source archive | https://swapoff.org/files/ondir/ondir-0.2.4.tar.gz |
| Bottle | available (on 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 | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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 ondirsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.