-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgadd
More file actions
executable file
·80 lines (62 loc) · 2.03 KB
/
Copy pathgadd
File metadata and controls
executable file
·80 lines (62 loc) · 2.03 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/sh
# Always source this script, do not execute or else
# `cd` will not actually change directory!
cd $HOME/pnl/github/dot-files/
git checkout T14 >/dev/null
# Remove all files in home/.
rm -rf $HOME/pnl/github/dot-files/home
# Create longest directory so that all parent directories will be auto-created.
mkdir -p $HOME/pnl/github/dot-files/home/
# Copy changed files at $HOME/.
cp -fr \
$HOME/.vim \
$HOME/.bash \
$HOME/.fonts \
$HOME/.alias \
$HOME/.vimrc \
$HOME/.bashrc \
$HOME/.inputrc \
$HOME/.profile \
$HOME/.gitconfig \
$HOME/.Xresources \
$HOME/.bash_profile \
$HOME/pnl/github/dot-files/home/
# Copy files at $HOME/.local/share.
mkdir -p $HOME/pnl/github/dot-files/home/.local/share
cp -rf \
$HOME/.local/share/konsole \
$HOME/.local/share/supplements \
$HOME/pnl/github/dot-files/home/.local/share
# Copy changed files at $HOME/.config/.
mkdir -p $HOME/pnl/github/dot-files/home/.config/
cp -fr \
$HOME/.config/i3 \
$HOME/.config/dunst \
$HOME/.config/compton \
$HOME/.config/picom \
$HOME/.config/gsimplecal \
$HOME/.config/fontconfig \
$HOME/.config/xfce4 \
$HOME/pnl/github/dot-files/home/.config/
echo "dot-files status:"
git status
# For scripts
echo "Switching to scripts"
# Keep a single copy of git specific files like README by saving them and
# retrieving them later after deleting.
mkdir -p /tmp/scriptFiles/
mv $HOME/pnl/github/scripts/README.md \
$HOME/pnl/github/scripts/img_blur_lock.png \
$HOME/pnl/github/scripts/requirements.txt \
/tmp/scriptFiles/
# Remove all files in "scripts" repo.
rm -rf $HOME/pnl/github/scripts/*
mv /tmp/scriptFiles/* \
$HOME/pnl/github/scripts/
cp -fr \
$HOME/.scripts/* \
$HOME/pnl/github/scripts
rm -rf /tmp/scriptFiles/
cd $HOME/pnl/github/scripts/
echo "scripts status:"
git status