Added make private

This commit is contained in:
gpkvt 2023-07-15 14:15:50 +02:00
parent d3926e346e
commit ec09df9b64
3 changed files with 15 additions and 0 deletions

View File

@ -3,3 +3,7 @@ install:
update:
./install.zsh update
private:
./install.zsh private
6

View File

@ -6,6 +6,8 @@ Run `make install` or `./install.zsh` to install the dotfiles. Run `make update`
Some dotfiles contains sensitive informationen (e.g. Credentials) you don't want to share in public git repos. Therefore you can create an folder named `private` to check out a private git repo there including all you sensitive files. This folder will not be included in the public repo.
You can use `make private` to clone your private dotfile repo.
## tmux
### Plugin and Theme Installation

View File

@ -40,6 +40,15 @@ tools=(
GIT_ROOT=$(git rev-parse --show-toplevel)
cd ${GIT_ROOT}
if [[ ${1} == "private" ]]; then
echo "Setting up private repo"
echo -n "Please provide your private Git-Repo URL: "
read repo
cd ${GIT_ROOT}
git clone ${repo} private
exit 0
fi
if [[ ${1} == "update" ]]; then
echo "Updating repos"
if [[ -d ${GIT_ROOT}/private/ ]]; then