File tree 7 files changed +65
-3
lines changed
7 files changed +65
-3
lines changed Original file line number Diff line number Diff line change 19
19
[submodule "demos/_rain "]
20
20
path = demos/_rain
21
21
url = https://github.com/lbgists/rain.sh.git
22
+ [submodule ".dotbot-plugins/snap "]
23
+ path = .dotbot-plugins/snap
24
+ url = https://github.com/DrDynamic/dotbot-snap.git
25
+ [submodule ".dotbot-plugins/aptget "]
26
+ path = .dotbot-plugins/aptget
27
+ url = https://github.com/johnlettman/dotbot-aptget.git
28
+ [submodule ".dotbot-plugins/sudo "]
29
+ path = .dotbot-plugins/sudo
30
+ url = https://github.com/johnlettman/dotbot-sudo.git
Original file line number Diff line number Diff line change 2
2
link :
3
3
create : true
4
4
relink : true
5
+ aptget :
6
+ upgrade : true
5
7
6
8
- link :
7
9
~/.gitignore : git/ignore
13
15
~/.config/nano/nanorc : nano/nanorc
14
16
~/.config/nano/syntax-highlighting : nano/syntax-highlighting
15
17
16
- ~/.config/htop/htoprc : htop/htoprc
18
+ ~/.config/htop/htoprc : htop/htoprc
19
+
20
+ - sudo :
21
+ - snap :
22
+
23
+ jq :
24
+ yq :
25
+
26
+ # instant messaging applications
27
+ discord :
28
+ caprine :
29
+ mattermost-desktop :
30
+ telegram-desktop :
31
+
32
+ - aptget :
33
+ python-is-python3 :
34
+ emacs :
Original file line number Diff line number Diff line change @@ -4,9 +4,21 @@ source "$(dirname "${BASH_SOURCE[0]}")/scripts/_utils.sh";
4
4
5
5
config=" ${repo_dir} /.install.yaml" ;
6
6
dotbot_dir=" ${repo_dir} /.dotbot" ;
7
+ dotbot_plugins_dir=" ${repo_dir} /.dotbot-plugins" ;
7
8
dotbot_bin=" ${dotbot_dir} /bin/dotbot" ;
8
9
10
+ dotbot_plugins=(
11
+ " sudo/sudo.py"
12
+ " aptget/aptget.py"
13
+ " snap/snap.py"
14
+ );
15
+
9
16
git -C " ${dotbot_dir} " submodule sync --quiet --recursive;
10
17
git submodule update --init --recursive " ${dotbot_dir} " ;
11
18
12
- " ${dotbot_bin} " -d " ${repo_dir} " -c " ${config} " " ${@ } " ;
19
+ # shellcheck disable=SC2068,SC2046
20
+ " ${dotbot_bin} " \
21
+ $( join " -p ${dotbot_plugins_dir} /" ${dotbot_plugins[@]} ) \
22
+ -d " ${repo_dir} " \
23
+ -c " ${config} " \
24
+ " ${@ } " ;
Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ while [ -h "${repo_dir}" ]; do
25
25
repo_dir=" $( readlink -f -- " ${repo_dir} " ) " ;
26
26
done ;
27
27
28
+ cd " ${repo_dir} " || {
29
+ log error " Unable to change directories; something is wrong!" ;
30
+ exit 1;
31
+ };
32
+
33
+ repo_dir=" $( pwd) " ;
34
+
28
35
# return to the previous directory prior to these operations
29
36
popd > ' /dev/null' || cd " ${prev_dir} " || {
30
37
log error \
@@ -33,4 +40,17 @@ popd >'/dev/null' || cd "${prev_dir}" || {
33
40
};
34
41
35
42
unset prev_dir;
36
- export repo_dir;
43
+ export repo_dir;
44
+
45
+
46
+ join () {
47
+ local prefix=" $1 " ;
48
+ shift ;
49
+ local arr=(" $@ " );
50
+
51
+ for i in " ${! arr[@]} " ; do
52
+ arr[i]=" ${prefix}${arr[i]} " ;
53
+ done ;
54
+
55
+ echo " ${arr[*]} " ;
56
+ }
You can’t perform that action at this time.
0 commit comments