cfg/.zsh/config-git.zsh

13 lines
217 B
Bash
Raw Normal View History

2016-07-21 13:38:57 +00:00
function config {
repo_name=$1
shift
if ! [ -d ${HOME}/.cfg/${repo_name} ]; then
echo "Repo '${repo_name}' not found!"
return 1
fi
2016-07-21 13:35:40 +00:00
git --git-dir=${HOME}/.cfg/${repo_name} --work-tree=${HOME} $@
2016-07-21 13:35:40 +00:00
}