ondir
« Back to VersTracker
Description:
Automatically execute scripts as you traverse directories
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: shell automation productivity developer-tools directory
Install: brew install ondir
About:
Ondir is a small program that allows you to automatically execute shell scripts when entering or leaving a directory. It integrates with your shell to provide a seamless way to manage environment variables and project-specific settings. This tool helps maintain a clean and organized workflow without manual script execution.
Key Features:
  • Automatic script execution on directory change
  • Support for both entering and leaving directories
  • Lightweight and shell-agnostic integration
  • Simple directory-based configuration
Use Cases:
  • Managing project-specific environment variables
  • Activating virtual environments automatically
  • Setting up project-specific aliases or functions
Alternatives:
  • direnv – direnv is more feature-rich with environment variable loading, while Ondir is simpler and focuses on script execution.
  • autoenv – autoenv is similar but Ondir provides more control with enter/leave script separation.
Version History
Detected Version Rev Change Commit
Sep 16, 2025 9:03am 0 VERSION_BUMP 92430576