 ;;; eshell-conf.el -- Settings for Eshell
 (eval-when-compile
   (require 'eshell))
+
+(require 'powerline)
+(require 'esh-mode)
 
 (custom-set-variables
  '(eshell-prompt-regexp "^❯ ")

 '(eshell-smart-space-goes-to-end t))

(defun pjones:eshell-prompt-function ()
  (require 'powerline)
  (let* ((separator-left (intern (format "powerline-%s-%s"
                                         (powerline-current-separator)
                                         (car powerline-default-separator-dir))))

  (setq eshell-prompt-function 'pjones:eshell-prompt-function)
  (eshell-smart-initialize))

(defvar eshell-mode-hook "Why isn't this defined?" nil)
(add-to-list 'eshell-mode-hook #'pjones:eshell-mode-hook)
