Bash cd hook

This is a simple repo for a simple snippet made by a simple man with ❤️.

How to

Clone this repo and you are ready to install this hook inside your ~/.bash_profile.

install.sh

Execute this file to install the hook

uninstall.sh

Execute this file to remove the hook

Hook files

enter.sh

Place this file inside a folder and when you cd inside that this file will be fired with source.

leave.sh

Same as enter.sh but this file will be sourced before leaving the directory.