aboutsummaryrefslogtreecommitdiff
path: root/setup
blob: e0a1b7122fead539579da708919fdfd561a155e6 (plain)
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
#!/usr/bin/env bash

set -e

ln -sf "$PWD/.bash_profile" "$HOME/.bash_profile"
ln -sf "$PWD/.bashrc" "$HOME/.bashrc"
ln -sf "$PWD/.inputrc" "$HOME/.inputrc"
ln -sf "$PWD/.tmux.conf" "$HOME/.tmux.conf"
ln -sf "$PWD/.vimrc" "$HOME/.vimrc"

rm -rf "$HOME/.vim"
ln -sf "$PWD/.vim" "$HOME/.vim"

# --- XDG_CONFIG_HOME

mkdir -p "$HOME/.config"

rm -rf "$HOME/.config/alacritty"
ln -sf "$PWD/alacritty" "$HOME/.config/alacritty"

rm -rf "$HOME/.config/ghostty"
ln -sf "$PWD/ghostty" "$HOME/.config/ghostty"

rm -rf "$HOME/.config/powershell"
ln -sf "$PWD/powershell" "$HOME/.config/powershell"

# --- .LOCAL

mkdir -p "$HOME/.local"

rm -rf "$HOME/.local/snippets"
ln -sf "$PWD/snippets" "$HOME/.local/snippets"

rm -rf "$HOME/.local/scripts"
ln -sf "$PWD/scripts" "$HOME/.local/scripts"