   ;; https://github.com/domtronn/all-the-icons.el
   ;; Pretty icons
   :config
-  (unless (member "all-the-icons" (font-family-list))
+  (when (and (window-system)
+	     (not (member "all-the-icons" (font-family-list))))
     (all-the-icons-install-fonts t))
   ;; Fix MATLAB icon
-  (setq all-the-icons-icon-alist
-	(add-to-list 'all-the-icons-icon-alist
-		     '("\\.m$" all-the-icons-fileicon "matlab"
-		       :face all-the-icons-orange)))
+  (when (window-system)
+    (setq all-the-icons-icon-alist
+	  (add-to-list 'all-the-icons-icon-alist
+		       '("\\.m$" all-the-icons-fileicon "matlab"
+			 :face all-the-icons-orange))))
   )
 
 (use-package mic-paren

	(append '(".DS_Store" ".gitignore")
		projectile-globally-ignored-files))
  (projectile-global-mode))

;;; ..:: Git ::..


;; Garbage collection message

;;;###autoload
(defun danylo/fa-icon (icon)
  "Fontawesome icon with proper formatting for minibuffer"
  (propertize (all-the-icons-faicon icon)
	      'face `(:family
		      ,(all-the-icons-faicon-family)
		      :height 1.0)
	      'display '(raise -0.05)))

;;;###autoload
(defun danylo/gc-message ()
  "Garbage collection message."
  (when (and garbage-collection-messages
	     (not (active-minibuffer-window)))
    (let ((message-log-max nil))
      (message "%s Collecting garbage" (danylo/fa-icon "trash-o")))))

(add-hook 'post-gc-hook (lambda () (danylo/gc-message) nil))

