func GetConfigDir() (configDir string, err error) {
	var userHome string
	if userHome, err = homedir.Dir(); err == nil {
		configDir = path.Join(userHome, "/.config/hd-home")
	}
	return
}
GetConfigDir returns the directory of the config
package installer
import (
	"fmt"
	"github.com/go-git/go-git/v5"
	"github.com/go-git/go-git/v5/config"
	"github.com/linuxsuren/http-downloader/pkg/common"
	"github.com/mitchellh/go-homedir"
	"io"
	"os"
	"path"
	"strings"
)
const (
	ConfigGitHub = "https://github.com/LinuxSuRen/hd-home"
	ConfigBranch = "master"
)
var configRepos = map[string]string{
	"github": ConfigGitHub,
	"gitee":  "https://gitee.com/LinuxSuRen/hd-home",
}