-
Notifications
You must be signed in to change notification settings - Fork 1
/
install
executable file
·71 lines (45 loc) · 1.91 KB
/
install
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
cd "${0%/*}" || exit 0
create_symlink() {
test -h $2 || ( rm -rf $2 && mkdir -p $( dirname $2 ) && ln -s $1 $2 )
}
create_dotfiles_symlink() {
create_symlink ~/.dotfiles/$1 $2
}
create_dotfiles_symlink git/.gitconfig ~/.gitconfig
create_dotfiles_symlink git/ignore ~/.config/git/ignore
create_dotfiles_symlink bash/.bashrc ~/.bashrc
create_dotfiles_symlink bash/.bash_aliases ~/.bash_aliases
create_dotfiles_symlink bash/.profile ~/.profile
# create_dotfiles_symlink X/.Xdefaults ~/.Xdefaults
create_dotfiles_symlink doublecmd/doublecmd.xml ~/.config/doublecmd/doublecmd.xml
create_dotfiles_symlink doublecmd/shortcuts.scf ~/.config/doublecmd/shortcuts.scf
create_dotfiles_symlink gtk/.gtkrc-2.0 ~/.gtkrc-2.0
create_dotfiles_symlink gtk/gtk-3.0 ~/.config/gtk-3.0
create_dotfiles_symlink input/.inputrc ~/.inputrc
# create_dotfiles_symlink X/.screenrc ~/.screenrc
create_dotfiles_symlink tmux/.tmux.conf ~/.tmux.conf
create_dotfiles_symlink alacritty ~/.config/alacritty
create_dotfiles_symlink waybar ~/.config/waybar
create_dotfiles_symlink sway ~/.config/sway
create_dotfiles_symlink ruby/.gemrc ~/.gemrc
create_dotfiles_symlink dunst/dunstrc ~/.config/dunst/dunstrc
create_dotfiles_symlink rofi ~/.config/rofi
create_dotfiles_symlink mimeapps/mimeapps.list ~/.config/mimeapps.list
(
cd subl || exit 0
for dir in Packages/User*; do
create_dotfiles_symlink subl/$dir ~/.config/sublime-text/$dir
done
)
# Dropbox symlinks
if [[ -d ~/Dropbox/ubuntu ]]; then
create_symlink ~/Dropbox/dotfiles/AppImages ~/AppImages
create_symlink ~/Dropbox/dotfiles/fonts ~/.fonts
create_symlink ~/Dropbox/dotfiles/tex/texmf ~/texmf
create_symlink ~/Dropbox/dotfiles/ssh/config ~/.ssh/config
create_symlink ~/Dropbox/Pictures/unsplash ~/Pictures/unsplash
create_symlink ~/Dropbox/Pictures/unsplash_hd ~/Pictures/unsplash_hd
else
echo "Dropbox not present - see readme/dropbox.md for setup instructions."
fi