File tree 4 files changed +33
-0
lines changed
4 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ [submodule ".dotbot "]
2
+ path = .dotbot
3
+ url = https://github.com/anishathalye/dotbot
Original file line number Diff line number Diff line change
1
+ - defaults :
2
+ link :
3
+ create : true
4
+ relink : true
5
+
6
+ - link :
7
+ ~/.gitconfig : git/config
8
+ ~/.gitconfig.canonical : git/canonical
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -e;
3
+ pushd . > ' /dev/null' ;
4
+ repo_dir=" ${BASH_SOURCE[0]:- $0 } " ;
5
+ while [ -h " ${repo_dir} " ]; do
6
+ cd " $( dirname -- " ${repo_dir} " ) " ;
7
+ repo_dir=" $( readlink -f -- " ${repo_dir} " ) " ;
8
+ done ;
9
+
10
+ cd " $( dirname -- " ${repo_dir} " ) " > ' /dev/null' ;
11
+ repo_dir=" $( pwd) " ;
12
+ popd > ' /dev/null' ;
13
+
14
+ config=" ${repo_dir} /.install.yaml" ;
15
+ dotbot_dir=" ${repo_dir} /.dotbot" ;
16
+ dotbot_bin=" ${dotbot_dir} /bin/dotbot" ;
17
+
18
+ git -C " ${dotbot_dir} " submodule sync --quiet --recursive;
19
+ git submodule update --init --recursive " ${dotbot_dir} " ;
20
+
21
+ " ${dotbot_bin} " -d " ${repo_dir} " -c " ${config} " " ${@ } " ;
You can’t perform that action at this time.
0 commit comments