diff --git a/install-profile b/install-profile new file mode 100644 index 0000000..5c8bd26 --- /dev/null +++ b/install-profile @@ -0,0 +1,34 @@ +#!/usr/bin/env bash + +set -e + +BASE_CONFIG="base" +CONFIG_SUFFIX=".yaml" + +META_DIR="meta" +CONFIG_DIR="configs" +PROFILES_DIR="profiles" + +DOTBOT_DIR="dotbot" +DOTBOT_BIN="bin/dotbot" + +BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + + +cd "${BASE_DIR}" +git submodule update --init --recursive --remote + + +while IFS= read -r config; do + CONFIGS+=" ${config}" +done < "${META_DIR}/${PROFILES_DIR}/$1" + +shift + + +"${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "${META_DIR}/${BASE_CONFIG}${CONFIG_SUFFIX}" + +for config in ${CONFIGS} ${@}; do + echo $config + "${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "${META_DIR}/${CONFIG_DIR}/${config}${CONFIG_SUFFIX}" +done diff --git a/install-standalone b/install-standalone new file mode 100644 index 0000000..973a2f5 --- /dev/null +++ b/install-standalone @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +set -e + +BASE_CONFIG="base" +CONFIG_SUFFIX=".yaml" + +META_DIR="meta" +CONFIG_DIR="configs" +PROFILES_DIR="profiles" + +DOTBOT_DIR="dotbot" +DOTBOT_BIN="bin/dotbot" + +BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + + +cd "${BASE_DIR}" +git submodule update --init --recursive --remote + + +"${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "${META_DIR}/${BASE_CONFIG}${CONFIG_SUFFIX}" + +for config in ${@}; do + "${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "${META_DIR}/${CONFIG_DIR}/${config}${CONFIG_SUFFIX}" +done diff --git a/meta/base.yaml b/meta/base.yaml new file mode 100644 index 0000000..769eb7c --- /dev/null +++ b/meta/base.yaml @@ -0,0 +1,9 @@ +- defaults: + link: + create: true + relink: true + +- clean: [ + '~', + '~/.config' +] diff --git a/meta/profiles/workstation b/meta/profiles/workstation new file mode 100644 index 0000000..256f6bf --- /dev/null +++ b/meta/profiles/workstation @@ -0,0 +1,18 @@ +conky +gdb +git +gnupg +ncmpcpp +profile +qt +rofi +teiler +terminal-colors +termite +tmuxinator +tmux +vim +x11 +xbindkeys +youtube-dl +zsh