HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/scripts/extras/bash_zsh_support/chpwd/README.md
# Bash support for Zsh like chpwd hook

Implemented based on the description from
http://zsh.sourceforge.net/Doc/Release/Functions.html#Hook-Functions

## Usage

1. load `function.sh` and `load.sh`, eg:

        source chpwd/functions.sh
        source chpwd/load.sh

2. add the hook - replace `_hook_name` with your function name:

        export -a chpwd_functions                              # define hooks as an shell array
        [[ " ${chpwd_functions[*]} " == *" _hook_name "* ]] || # prevent double addition
        chpwd_functions+=(_hook_name)                          # finally add it to the list