-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopytorepo.sh
executable file
·58 lines (51 loc) · 1.1 KB
/
copytorepo.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
if [ -d dotfiles ]; then
pushd ~/Documents/gitrepos/deb-install/dotfiles
else
mkdir ./dotfiles
pushd ~/Documents/gitrepos/deb-install/dotfiles
fi
if [ -d vim ]; then
cp ~/.vimrc ./vim/
echo .vimrc updated
else
mkdir ./vim
echo directory "vim" created
cp ~/.vimrc ./vim
echo .vimrc updated
fi
if [ -d zsh ]; then
cp ~/.zshrc ./zsh
echo .zshrc updated
else
mkdir ./zsh
echo directory "zshrc" created
cp ~/.zshrc ./zsh
echo .zshrc updated
fi
if [ -d rofi ]; then
cp -r ~/.config/rofi .
echo rofi files updated
else
echo directory "rofi" created
cp -r ~/.config/rofi .
echo rofi files updated
fi
if [ -d i3 ]; then
cp -r ~/.config/i3 .
echo i3 dot files updated
else
echo directory "i3" created
cp -r ~/.config/i3 .
echo i3 dot files updated
fi
if [ -d compton ]; then
cp -r ~/.config/compton/compton.conf ./compton
echo compton.conf updated
else
mkdir ./compton
echo directory "compton" created
cp -r ~/.config/compton/compton.conf ./compton
echo compton.conf updated
fi
popd