summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotfiles/Rexfile6
-rw-r--r--dotfiles/gitsyncer/gitsyncer.json16
2 files changed, 22 insertions, 0 deletions
diff --git a/dotfiles/Rexfile b/dotfiles/Rexfile
index 6197018..9c42cae 100644
--- a/dotfiles/Rexfile
+++ b/dotfiles/Rexfile
@@ -166,6 +166,12 @@ task 'home_fish', sub {
}
};
+desc 'Install gitsyncer configuration';
+task 'home_gitsyncer', sub {
+ my $dest_dir = "$HOME/.config/gitsyncer";
+ symlink "$DOT/gitsyncer/" => $dest_dir or die "Could not create symlink: $!";
+};
+
sub isFileSymlink() {
my $file = shift;
return -l $file && -e $file;
diff --git a/dotfiles/gitsyncer/gitsyncer.json b/dotfiles/gitsyncer/gitsyncer.json
new file mode 100644
index 0000000..7103d92
--- /dev/null
+++ b/dotfiles/gitsyncer/gitsyncer.json
@@ -0,0 +1,16 @@
+{
+ "organizations": [
+ {
+ "host": "git@codeberg.org",
+ "name": "snonux"
+ },
+ {
+ "host": "git@github.com",
+ "name": "snonux"
+ }
+ ],
+ "repositories": [],
+ "exclude_branches": [
+ "^codex/"
+ ]
+} \ No newline at end of file