add path manipulation functions

This commit is contained in:
Ava Apples Affine 2023-03-23 12:07:28 -07:00
parent a711b32730
commit 3b1ae0efd5
Signed by: affine
GPG key ID: 3A4645B8CF806069
3 changed files with 24 additions and 2 deletions

View file

@ -100,3 +100,12 @@ Returns true if the list contains the element.'
(set (q found) true)
(set (q list-iter) (pop remaining)))))
found))
(def get-paths
'returns each individual directory in PATH'
() (split PATH ':'))
(def add-path
'adds a directory to PATH'
(path) (set (q PATH)
(concat PATH ':' path)))