forked from colonelpanic/dotfiles
[Emacs] Fix inverted server start condition
This commit is contained in:
5
dotfiles/lib/bin/enable_git_sync.sh
Executable file
5
dotfiles/lib/bin/enable_git_sync.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
git config --bool branch.master.sync true
|
||||
git config --bool branch.master.syncNewFiles true
|
||||
git branch --set-upstream-to=origin/master
|
11
dotfiles/lib/bin/git_sync_directory.sh
Executable file
11
dotfiles/lib/bin/git_sync_directory.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd "$1"
|
||||
|
||||
echo "Syncing $1"
|
||||
git-sync
|
||||
enable_git_sync.sh
|
||||
|
||||
while changedFile=$(inotifywait ./ -r -e modify,move,create,delete --format "%w%f" --exclude '\.git' 2>/dev/null); do
|
||||
git check-ignore "$changedFile" >> /dev/null || git-sync
|
||||
done
|
Reference in New Issue
Block a user