 (setq osx-packages
   '(
+    osx-trash
     pbcopy
     launchctl
     reveal-in-osx-finder

  ;; See brew info trash (or osx-tools)
  ;; otherwise, enable built-in support for trashing using Finder API

  (if (executable-find "trash")
      (defun system-move-file-to-trash (file)
        "Use `trash' to move FILE to the system/volume trash can.
Can be installed with `brew install trash'."
        (call-process (executable-find "trash") nil 0 nil file))
    (setq mac-system-move-file-to-trash-use-finder t))

  ;; Use `gls' if `coreutils' was installed prefixed ('g') otherwise, leave

    (setq insert-directory-program "gls"
          dired-listing-switches "-aBhl --group-directories-first")
    ))

(defun osx/init-osx-trash ()
  (use-package osx-trash
    :if (and (spacemacs/system-is-mac)
             (not (boundp 'mac-system-move-file-to-trash-use-finder)))
    :init (osx-trash-setup)))

(defun osx/init-pbcopy ()
  (use-package pbcopy
