diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4fd9090 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +user.conf diff --git a/config b/config index d28b50a..960d839 100644 --- a/config +++ b/config @@ -1,6 +1,5 @@ -[user] - name = Andrey Astafyev - email = dev@246060.ru +[include] + path = user.conf [core] editor = vim @@ -100,11 +99,11 @@ track = update-index --no-assume-unchanged ls-untrack = !git ls-files -v | grep '^h' - rm-submodule = " git rm --cached $1 && \ - rm -rf $1 && \ - rm -rf .git/modules/$1 && \ - git config -f .gitmodules --remove-section submodule.$1 && \ - git config -f .git/config --remove-section submodule.$1 " + rm-submodule = "!f() { git rm --cached $1 && \ + rm -rf $1 && \ + rm -rf .git/modules/$1 && \ + git config -f .gitmodules --remove-section submodule.$1 && \ + git config -f .git/config --remove-section submodule.$1; }; f" [diff] renames = copy