-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·63 lines (47 loc) · 1.89 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·63 lines (47 loc) · 1.89 KB
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
#!/bin/bash
DOTFILES="${HOME}/dotfiles"
if [ ! -d ~/.vim ] && [ ! -f ~/.vim/vimrc ] && [ -f "${DOTFILES}/vimrc" ]; then
mkdir ~/.vim
ln -s "${DOTFILES}/vimrc" "${HOME}/.vim/vimrc"
fi
if [ ! -f ~/.tmux.conf ] && [ -f "${DOTFILES}/.tmux.conf" ]; then
ln -s "${DOTFILES}/.tmux.conf" "${HOME}/.tmux.conf"
fi
if [ ! -f ~/.gitconfig ] && [ -f "${DOTFILES}/.gitconfig" ]; then
ln -s "${DOTFILES}/.gitconfig" "${HOME}/.gitconfig"
fi
if [ ! -f ~/.zshrc ] && [ -f "${DOTFILES}/.zshrc" ]; then
ln -s "${DOTFILES}/.zshrc" "${HOME}/.zshrc"
fi
if [ ! -f ~/.config/redshift.conf ] && [ -f "${DOTFILES}/.config/redshift.conf" ]; then
ln -s "${DOTFILES}/.config/redshift.conf" "${HOME}/.config/redshift.conf"
fi
if [ ! -f ~/.config/mimeapps.list ] && [ -f "${DOTFILES}/.config/mimeapps.list" ]; then
ln -s "${DOTFILES}/.config/mimeapps.list" "${HOME}/.config/mimeapps.list"
fi
if [ ! -f ~/.xsession ] && [ -f "${DOTFILES}/.xsession" ]; then
ln -s "${DOTFILES}/.xsession" "${HOME}/.xsession"
fi
if [ ! -f ~/.zprofile ] && [ -f "${DOTFILES}/.zprofile" ]; then
ln -s "${DOTFILES}/.zprofile" "${HOME}/.zprofile"
fi
if [ ! -f ~/.xinitrc ] && [ -f "${DOTFILES}/.xinitrc" ]; then
ln -s "${DOTFILES}/.xinitrc" "${HOME}/.xinitrc"
fi
if [ ! -f ~/.antigenrc ] && [ -f "${DOTFILES}/.antigenrc" ]; then
ln -s "${DOTFILES}/.antigenrc" "${HOME}/.antigenrc"
fi
if [ ! -f ~/.asoundrc ] && [ -f "${DOTFILES}/.asoundrc" ]; then
ln -s "${DOTFILES}/.asoundrc" "${HOME}/.asoundrc"
fi
if [ ! -f "${HOME}/.local/share/wallpapers" ] && [ -f "${DOTFILES}/wallpapers" ]; then
mkdir -p "${HOME}/.local/share"
ln -s "${DOTFILES}/wallpapers" "${HOME}/.local/share/wallpapers"
fi
if [ ! -d "${HOME}/.local/bin" ] && [ -d "${DOTFILES}/.local/bin" ]; then
mkdir -p "${HOME}/.local"
ln -s "${DOTFILES}/.local/bin" "${HOME}/.local/bin"
fi
if [ -f "$HOME/dwm.desktop" ]; then
sudo cp "$HOME/dwm.desktop" /usr/share/xsessions/dwm.desktop
fi