-
Notifications
You must be signed in to change notification settings - Fork 0
/
link.sh
executable file
·36 lines (29 loc) · 940 Bytes
/
link.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
#!/bin/bash
# Fish
mkdir -p "$HOME/.config/fish_bak"
mv "$HOME/.config/fish" "$HOME/.config/fish_bak"
ln -s "$(pwd)/fish" "$HOME/.config"
# Nvim
mkdir -p "$HOME/.config/nvim_bak"
mv "$HOME/.config/nvim" "$HOME/.config/nvim_bak"
ln -s "$(pwd)/nvim" "$HOME/.config"
# Helix
mkdir -p "$HOME/.config/helix_bak"
mv "$HOME/.config/helix" "$HOME/.config/helix_bak"
ln -s "$(pwd)/helix" "$HOME/.config"
# gitui
mkdir -p "$HOME/.config/gitui_bak"
mv "$HOME/.config/gitui" "$HOME/.config/gitui_bak"
ln -s "$(pwd)/gitui" "$HOME/.config"
# Zed
mkdir -p "$HOME/.config/zed_bak"
mv "$HOME/.config/zed" "$HOME/.config/zed_bak"
ln -s "$(pwd)/zed" "$HOME/.config"
# Kitty
mkdir -p "$HOME/.config/kitty_bak"
mv "$HOME/.config/kitty" "$HOME/.config/kitty_bak"
ln -s "$(pwd)/kitty" "$HOME/.config"
if [[ "$OSTYPE" == "darwin"* ]]; then
# iTerm2
ln -s "$(pwd)/iterm2/com.googlecode.iterm2.plist" "$HOME/.config/iterm2/com.googlecode.iterm2.plist"
fi