ondir

Automate tasks specific to certain directories in the shell

Install

All systems
curl cmd.cat/ondir.sh
Debian Debian
apt-get install ondir
Ubuntu
apt-get install ondir
image/svg+xml Kali Linux
apt-get install ondir
OS X
brew install ondir
Raspbian
apt-get install ondir

ondir

Automate tasks specific to certain directories in the shell

ondir is a small program to automate tasks specific to certain directories. It works by executing scripts in directories when you enter and leave them. It may be used to set environment variables or change the umask depending on the current working directory. This program is similar to the direnv package. In contrast to direnv, which expects the per-directory settings to be stored in the directory itself, ondir uses a central configuration file in the user's home directory, and can match directories based on patterns. ondir supports bash, zsh and fish out of the box.