init.zsh 1020 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Directory navigation options
  3. #
  4. #
  5. # Navigation
  6. #
  7. # If a command is issued that can’t be executed as a normal command,
  8. # and the command is the name of a directory, perform the cd command to that directory.
  9. setopt AUTO_CD
  10. # Make cd push the old directory onto the directory stack.
  11. setopt AUTO_PUSHD
  12. # Don’t push multiple copies of the same directory onto the directory stack.
  13. setopt PUSHD_IGNORE_DUPS
  14. # Do not print the directory stack after pushd or popd.
  15. setopt PUSHD_SILENT
  16. # Have pushd with no arguments act like ‘pushd ${HOME}’.
  17. setopt PUSHD_TO_HOME
  18. #
  19. # Globbing and fds
  20. #
  21. # Treat the ‘#’, ‘~’ and ‘^’ characters as part of patterns for filename generation, etc.
  22. # (An initial unquoted ‘~’ always produces named directory expansion.)
  23. setopt EXTENDED_GLOB
  24. # Perform implicit tees or cats when multiple redirections are attempted.
  25. setopt MULTIOS
  26. # Disallow ‘>’ redirection to overwrite existing files.
  27. # ‘>|’ or ‘>!’ must be used to overwrite a file.
  28. setopt NO_CLOBBER