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

9
fish/os/os.fish Normal file
View File

@@ -0,0 +1,9 @@
# OS-specific configuration
switch (uname)
case Linux
source ~/.config/fish/os/linux.fish
case Darwin
source ~/.config/fish/os/osx.fish
case '*'
echo 'Unknown OS. No specifc config'
end