xtendo-org / chips

A fast, lightweight, and concurrent plugin manager for the fish shell, written in Haskell
73 stars 3 forks source link

Support fish 2.0.0 in config.fish #28

Closed simnalamburt closed 7 years ago

simnalamburt commented 7 years ago

Even though the usage of the . is deprecated in favour of source, there is no other way to support fish 2.0.0 without it.

There's no other way to workaround this problem except doing like this:

# The "real" fish config who loads chips
if [ -e ~/.config/chips/build.fish ] ; . ~/.config/chips/build.fish ; end

# Dummy fish config to deceive chips
set __dummy__ "
if [ -e ~/.config/chips/build.fish ] ; source ~/.config/chips/build.fish ; end
"

This commit is follow-up of #25. I've missed some code that uses the source command.

References