summaryrefslogtreecommitdiff
path: root/.gitconfig
diff options
context:
space:
mode:
Diffstat (limited to '.gitconfig')
-rw-r--r--.gitconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index f58660e1..ac0ecb7a 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -24,6 +24,10 @@
# # https://stackoverflow.com/questions/957928/is-there-a-way-to-get-the-git-root-directory-in-one-command#comment9747528_957978
# exec = "!exec "
+
+ # by David Bremner:
+ nmam = "!f() { notmuch show --format=raw $1 | git am -; }; f"
+
[core]
# no pager thanks
pager =