This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- lexical-binding:t coding:utf-8-unix -*- | |
(defun 3s/env-update-path-var (name value &optional append separator) | |
(let ((sep (or separator path-separator))) | |
(when (not (s-blank? value)) | |
(let* ((name-val (getenv name)) | |
(components (when (not (s-blank? name-val)) | |
(s-split sep name-val)))) | |
(if (null components) |