1
0
mirror of https://github.com/vbrandl/dotfiles synced 2024-11-26 17:35:12 +01:00

Add install scripts and global dotbot files

This commit is contained in:
Valentin Brandl 2017-02-11 20:58:25 +01:00
parent 2b33b79796
commit 8b4e029a44
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9
4 changed files with 87 additions and 0 deletions

34
install-profile Normal file
View File

@ -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

26
install-standalone Normal file
View File

@ -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

9
meta/base.yaml Normal file
View File

@ -0,0 +1,9 @@
- defaults:
link:
create: true
relink: true
- clean: [
'~',
'~/.config'
]

18
meta/profiles/workstation Normal file
View File

@ -0,0 +1,18 @@
conky
gdb
git
gnupg
ncmpcpp
profile
qt
rofi
teiler
terminal-colors
termite
tmuxinator
tmux
vim
x11
xbindkeys
youtube-dl
zsh