my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
455 B

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