zpm-project / zpm-zsh

zsh plugin manager in ansi C.
GNU General Public License v3.0
5 stars 3 forks source link

Review multi-host support #3

Closed desyncr closed 7 years ago

desyncr commented 7 years ago

@fennecdjay I have yet no idea how to implement this so any suggestion is welcome!

We should discuss here before doing any PR :)

TODO

fennecdjay commented 7 years ago

Maybe we could have

#define ZPM_DEFAULT_HOST "github.com"

in config.h then

if (!(host = getenv(ZPM_DEFAULT_HOST)) {
    host = ZPM_DEFAULT_VALUE;
}

I can give it a try tomorrow if you want.

desyncr commented 7 years ago

Done in #28