-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.bash
More file actions
executable file
·50 lines (43 loc) · 1.2 KB
/
update.bash
File metadata and controls
executable file
·50 lines (43 loc) · 1.2 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
#!/bin/bash
# FILES
FILES="
.bash_profile
.bashrc
.vimrc
.tmux.conf
.ansible.cfg
.zshrc
.starship-config.toml
.gitconfig
.gitignore
"
for file in $FILES; do
printf "comparing $file - "
cmp --silent $file ~/$file
if [ $? = "1" ]; then
diff $file ~/$file
printf "files are NOT the same. copy $file over to ~/ manually \n"
printf "\ncp $file ~/$file \n"
else
printf "files are the same. copying $file over to ~/ for you \n"
cp $file ~/$file
fi
done
if [ ! -d ~/.config/tmux-powerline ]; then
mkdir -p ~/.config/tmux-powerline
fi
printf "\ncomparing config.sh ~/.config/tmux-powerline/config.sh\n"
cmp --silent config.sh ~/.config/tmux-powerline/config.sh
if [ $? = "1" ]; then
diff config.sh ~/.config/tmux-powerline/config.sh
printf "files are NOT the same. copy config.sh over to ~/.config/tmux-powerline manually \n"
printf "\ncp config.sh ~/.config/tmux-powerline/config.sh \n"
else
printf "files are the same. copying config.sh over to ~/.config/tmux-powerline for you \n"
cp config.sh ~/.config/tmux-powerline/config.sh
fi
if [ ! -d ~/.local/share/mc/skins ]; then
printf "adding skin for midnight-commander \n"
mkdir -p ~/.local/share/mc/skins
cp electricblue256.ini ~/.local/share/mc/skins/.
fi