-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·44 lines (32 loc) · 1 KB
/
bootstrap.sh
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
40
41
42
43
44
#!/usr/bin/env bash
set -euo pipefail
declare -r DOTFILES="${HOME}/dotfiles"
declare -r SCRIPTS="${HOME}/git/lindhe/scripts"
cd ~
echo "Creating ~/.undodir for vim"
mkdir -p ~/.undodir
echo "Creating symlinks …"
ln -fs "${DOTFILES}/.gitconfig" .
ln -fs "${DOTFILES}/.gitignore_global" .
ln -fs "${DOTFILES}/.xprofile" .
ln -fs "${DOTFILES}/.yamllint_global.yaml" .yamllint.yaml
ln -fs "${DOTFILES}/.zsh_aliases" .
ln -fs "${DOTFILES}/.zsh_functions" .
ln -fs "${DOTFILES}/.zsh_k8s" .
ln -fs "${DOTFILES}/.zsh_wsl" .
ln -fs "${DOTFILES}/.zshrc" .
ln -fs "${DOTFILES}/res" .
mkdir -p ~/.config/git
cd ~/.config/git
ln -fs "${DOTFILES}/.config/git/github.gitconfig" .
# If WSL2:
if [[ -n ${WSLENV+x} ]]; then
ln -fs "${DOTFILES}/.config/git/wsl.gitconfig" .
fi
cd ~/.config
ln -fs "${DOTFILES}/.config/nvim/" .
ln -fs "${DOTFILES}/.config/tmux" .
if [[ ! -d "${SCRIPTS}" ]]; then
git clone https://github.com/lindhe/scripts.git "${SCRIPTS}"
fi
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm