add "alias" aliases

Sun, 18 Aug 2019 19:30:19 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 18 Aug 2019 19:30:19 -0500
changeset 784
a97d39955d73
parent 783
22ea15db4e3d
child 785
9bd25468c382

add "alias" aliases

.gitconfig file | annotate | diff | comparison | revisions
.hgrc file | annotate | diff | comparison | revisions
--- a/.gitconfig
+++ b/.gitconfig
@@ -6,6 +6,7 @@
 	user = merrilymeredith
 
 [alias]
+	alias    = "!git config -l | grep -v 'alias.alias' | perl -ne 's/^alias\\.// and s/=/#= / and print' | column -t -s#"
 	ci       = commit
 	rec      = commit -p
 	unrec    = checkout --patch
--- a/.hgrc
+++ b/.hgrc
@@ -18,6 +18,7 @@ schemes =
 pager = LESS='FSRXi' less
 
 [alias]
+alias = !$HG config alias | grep -v 'alias.alias' | perl -ne 's/^alias\.// and s/=/#= / and print' | column -t -s#
 fetch = pull --rebase
 rec   = record
 ctags = !~/bin/git-ctags

mercurial