summaryrefslogtreecommitdiff
path: root/.gitconfig
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-07-24 17:12:15 +0800
committerSean Whitton <spwhitton@spwhitton.name>2018-07-24 17:12:33 +0800
commite4ec4a77066f15d94bec126e67f869e8eb43889c (patch)
treecbeb2208f9b30116496c45f8d8358cf7c7262de0 /.gitconfig
parent45ec809c1d969b33977713d975fa1b100cd26592 (diff)
downloaddotfiles-e4ec4a77066f15d94bec126e67f869e8eb43889c.tar.gz
add `git nmam` alias from bremner
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 =