1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-22 01:03:35 +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"] [submodule "dotbot"]
path = dotbot path = .dotbot
url = https://github.com/anishathalye/dotbot url = https://github.com/anishathalye/dotbot
[submodule "password-store"] [submodule "password-store"]
path = password-store path = .password-store
url = https://git.zx2c4.com/password-store url = https://git.zx2c4.com/password-store

View file

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

View file

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