1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-21 16:53:33 +01:00

Hide submodules in root directory

This commit is contained in:
Eric Teunis de Boone 2020-04-14 17:00:41 +02:00
parent 37f41402ab
commit 07389ae819
6 changed files with 6 additions and 6 deletions

View file

4
.gitmodules vendored
View file

@ -1,6 +1,6 @@
[submodule "dotbot"]
path = dotbot
path = .dotbot
url = https://github.com/anishathalye/dotbot
[submodule "password-store"]
path = password-store
path = .password-store
url = https://git.zx2c4.com/password-store

View file

@ -1,6 +1,6 @@
# Enable password-storage and its bash completion
PASSDIR="${DOTFILES}/password-store"
PASSDIR="${DOTFILES}/.password-store"
# Only do this when the submodule is loaded
if [ -d "${PASSDIR}/src" ]; then

View file

@ -2,14 +2,14 @@
set -e
CONFIG="install.conf.yaml"
DOTBOT_DIR="dotbot"
CONFIG=".install.conf.yaml"
DOTBOT_DIR=".dotbot"
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${BASEDIR}"
git pull
git pull || echo "Pulling from remote failed"
git submodule update --init --recursive "${DOTBOT_DIR}"
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"