-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·51 lines (39 loc) · 1.22 KB
/
Copy pathbootstrap.sh
File metadata and controls
executable file
·51 lines (39 loc) · 1.22 KB
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
45
46
47
48
49
50
51
#!/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}/.bashrc" .
ln -fs "${DOTFILES}/.gitconfig" .
ln -fs "${DOTFILES}/.gitignore_global" .
ln -fs "${DOTFILES}/.inputrc" .
ln -fs "${DOTFILES}/.xprofile" .
ln -fs "${DOTFILES}/.yamllint_global.yaml" .yamllint.yaml
ln -fs "${DOTFILES}/.shellrc" .
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/k9s" .
ln -fs "${DOTFILES}/.config/niri" .
ln -fs "${DOTFILES}/.config/nvim" .
ln -fs "${DOTFILES}/.config/starship.toml" .
ln -fs "${DOTFILES}/.config/swaylock" .
ln -fs "${DOTFILES}/.config/tmux" .
ln -fs "${DOTFILES}/.config/waybar" .
if [[ ! -d "${SCRIPTS}" ]]; then
git clone https://github.com/lindhe/scripts.git "${SCRIPTS}"
fi
TMUX_TPM_DIR=~/.tmux/plugins/tpm
if [[ ! -d "${TMUX_TPM_DIR}" ]]; then
git clone https://github.com/tmux-plugins/tpm ${TMUX_TPM_DIR}
fi