-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·39 lines (28 loc) · 821 Bytes
/
Copy pathinstall
File metadata and controls
executable file
·39 lines (28 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env sh
set -ue
BASE_DIR="$(cd -- "$(dirname -- "$0")" && pwd)"
echo "${BASE_DIR}/scripts/functions"
. "${BASE_DIR}/scripts/functions"
clone() {
clone_into "${BASE_DIR}/files/$1" "$2"
}
install_files() {
clone "tmux.conf" "${HOME}/.tmux.conf"
clone "global.vimrc" "${HOME}/.vimrc"
clone "global.zshrc" "${HOME}/.zshrc"
clone "global.gitconfig" "${CONFIG}/git/config"
clone "global.gitignore" "${CONFIG}/git/ignore"
clone "wezterm.lua" "${CONFIG}/wezterm/wezterm.lua"
clone "k9s.config.yaml" "${PLATFORM_CONFIG}/k9s/config.yaml"
clone "k9s.default-skin.yaml" "${PLATFORM_CONFIG}/k9s/skins/default-skin.yaml"
}
main() {
parse_args "$@"
info "installing files..."
install_files
if [ -n "${INSTALL_TOOLS}" ]; then
info "installing tools..."
fi
info "installation completed."
}
main "$@"