1 ## The scd script should autoload as a shell function.
5 ## If the scd function exists, define a change-directory-hook function
6 ## to record visited directories in the scd index.
7 if [[ ${+functions[scd]} == 1 ]]; then
8 chpwd_scd() { scd --add $PWD }
9 autoload -Uz add-zsh-hook
10 add-zsh-hook chpwd chpwd_scd
14 ## Load the directory aliases created by scd if any.
15 if [[ -s ~/.scdalias.zsh ]]; then
16 source ~/.scdalias.zsh