summaryrefslogtreecommitdiff
path: root/link.sh
blob: 77dc788bff0a7e8d6e3ef224e73ed2c380745062 (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
!/bin/bash

# create dotfiles_old in homedir
olddir=~/dotfiles_old
mkdir -p $olddir

# change to the dotfiles directory
dir=~/dotfiles/dotfiles
cd $dir

# move current files and link contained files
files=$(ls $dir)
for f in $files; do
    name=${f//+//}
    echo $name
    mv ~/.$name ~/dotfiles_old/
    ln -s $dir/$f ~/.$name
done

# password-store
ln -sf ~/dotfiles/password-store ~/.password-store

# i3
ln -sf ~/dotfiles/i3/config ~/.config/i3/config
ln -sf ~/dotfiles/i3/lock.sh ~/.config/i3/lock.sh
mkdir ~/.config/i3status
ln -sf ~/dotfiles/i3/i3status+config ~/.config/i3status/config