   (define-key meta-m-map (kbd "M-z") 'shell-pop))
 
 (require 'eshell)
-
-;; Need to set the same value for exec-path and eshell-path-env
-(add-hook 'eshell-mode-hook (lambda ()
-                              (let ((nsv/userpath (getenv "PATH")))
-                                (setq eshell-path-env nsv/userpath)
-                                (setq exec-path (s-split ":" nsv/userpath)))))
 
 (add-hook 'eshell-mode-hook #'company-mode)
 

  (when (memq window-system '(mac ns x))
    (exec-path-from-shell-initialize))
  (setenv "SHELL" "/usr/bin/zsh")
  (setenv "TERM" "xterm-256color"))

(provide 'setup-shell)
;;; setup-shell.el ends here

              (setq xterm-color-preserve-properties t)))

  (add-to-list 'eshell-preoutput-filter-functions 'xterm-color-filter)

  ;; comint color
  (add-hook 'comint-preoutput-filter-functions 'xterm-color-filter))

;; Exec path from shell. Mainly to get PATH out of my shell into
;; eshell and whatnot
