cfg/.zsh/config-git.zsh
Knut Ahlers 5aeec94137
Unify all "config" git wrapper under one
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-03-04 23:09:10 +01:00

12 lines
217 B
Bash

function config {
repo_name=$1
shift
if ! [ -d ${HOME}/.cfg/${repo_name} ]; then
echo "Repo '${repo_name}' not found!"
return 1
fi
git --git-dir=${HOME}/.cfg/${repo_name} --work-tree=${HOME} $@
}