Fish config refactor

Move things into sub-files and sub-directories
Add ensure_path function to make sure stuff doesn't get spammed multiple
times into the PATH
This commit is contained in:
Tim McCarthy
2020-03-31 12:42:50 -07:00
parent a8e6dd2c75
commit 3ccf865b99
12 changed files with 51 additions and 49 deletions

View File

@@ -0,0 +1,7 @@
function ensure_path --description "Ensures directories are in $PATH"
for pathdir in $argv
if not set -l index (contains -i $pathdir $PATH)
set -g -x PATH $pathdir $PATH
end
end
end