-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlink
executable file
·48 lines (39 loc) · 1.41 KB
/
link
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
#!/usr/bin/env sh
# Ensure this path is correct before running this script
export DOTFILES=~/projects/dotfiles
# Remove existing links
rm ~/.xinitrc
rm ~/.zshenv
rm ~/.zprofile
rm ~/.zshrc
rm ~/.Xmodmap
rm ~/.gitconfig
rm ~/.tmux.conf
rm ~/.tern-config
rm ~/.gitignore_global
rm ~/.config/i3/config
rm ~/.config/conky/conky.conf
rm ~/.config/i3status/config
rm ~/.config/nvim/init.vim
rm ~/.config/nvim/spell
rm ~/.config/termite/config
rm ~/.config/starship.toml
# Create symbolic links
ln -s $DOTFILES/home/.xinitrc ~/.xinitrc
ln -s $DOTFILES/home/.zshenv ~/.zshenv
ln -s $DOTFILES/home/.zprofile ~/.zprofile
ln -s $DOTFILES/home/.zshrc ~/.zshrc
ln -s $DOTFILES/home/.Xmodmap ~/.Xmodmap
ln -s $DOTFILES/home/.gitconfig ~/.gitconfig
ln -s $DOTFILES/home/.tmux.conf ~/.tmux.conf
ln -s $DOTFILES/home/.tern-config ~/.tern-config
ln -s $DOTFILES/home/.gitignore_global ~/.gitignore_global
mkdir -p ~/.config/i3 ~/.config/i3status ~/.config/nvim ~/.config/termite ~/.config/conky
ln -s $DOTFILES/config/i3/i3.config ~/.config/i3/config
ln -s $DOTFILES/config/conky/conky.conf ~/.config/conky/conky.conf
ln -s $DOTFILES/config/i3status/i3status.config ~/.config/i3status/config
ln -s $DOTFILES/config/nvim/init.vim ~/.config/nvim/init.vim
ln -s $DOTFILES/config/nvim/spell ~/.config/nvim/spell
ln -s $DOTFILES/config/termite/config ~/.config/termite/config
ln -s $DOTFILES/config/starship.toml ~/.config/starship.toml
echo "All linked up."