init.zsh 392 B

12345678910111213141516171819202122232425
  1. #
  2. # Defines macOS aliases and functions.
  3. #
  4. # Authors:
  5. # Sorin Ionescu <sorin.ionescu@gmail.com>
  6. #
  7. # Load dependencies.
  8. pmodload 'helper'
  9. # Return if requirements are not found.
  10. if ! is-darwin; then
  11. return 1
  12. fi
  13. #
  14. # Aliases
  15. #
  16. # Changes directory to the current Finder directory.
  17. alias cdf='cd "$(pfd)"'
  18. # Pushes directory to the current Finder directory.
  19. alias pushdf='pushd "$(pfd)"'