-
Notifications
You must be signed in to change notification settings - Fork 0
/
gather_and_push.sh
executable file
·43 lines (38 loc) · 1.25 KB
/
gather_and_push.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
#!/usr/bin/env bash
echo "Moving to linux configuration directory"
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "Gathering config files"
rsync -a ~/.config/polybar ./ -r
rsync -a ~/.config/awesome ./ -r
rsync -a ~/.config/kitty ./ -r
rsync -a ~/.config/kak ./ -r
rsync -a ~/.config/htop ./ -r
rsync -a ~/.config/sway ./ -r
rsync -a ~/.config/tofi ./ -r
rsync -a ~/.config/waybar ./ -r
rsync -a ~/.config/mako ./ -r
rsync -a ~/.config/ranger ./ -r
rsync -a ~/.config/sway-interactive-screenshot ./ -r
rsync -a ~/.config/networkmanager-dmenu ./ -r
rsync -a ~/.doom.d/* ./doom.d -r
rsync -a ~/.xbindkeysrc ./
rsync -a ~/.aliases ./aliases -r
rsync -a ~/.local/bin/dmenu_run_aliases.sh ./dmenu_run_aliases.sh -r
rsync -a ~/.zshrc ./zshrc
rsync -a ~/.p10k.zsh p10k.zsh
rsync -a ~/.config/nvim ./nvim -r
rsync -a /usr/local/bin/rm_with_check.py ./ -r
rsync -a /usr/local/bin/timem.py ./ -r
rsync -a /etc/systemd/system/undervolt.service ./ -r
rsync -a ~/.ssh/config ./
rsync -a ~/.bash_profile ./
git diff
git add .
git status
read -p "Do you wish to push this to github? Enter the commit message, to NOT push press enter: " commit_msg
if [[ ! $commit_msg = "" ]]; then
git commit -m "$commit_msg"
git push
else
echo "Nothing has been commited nor pushed"
fi