From: Oleg Broytman Date: Thu, 11 Aug 2016 05:19:05 +0000 (+0300) Subject: .gitconfig: simplify 'aliases' alias a bit X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=a3f51e2b4e6e0c32f94e09ea9698194392dbc264 .gitconfig: simplify 'aliases' alias a bit --- diff --git a/.gitconfig b/.gitconfig index 90aab8c..04e584b 100644 --- a/.gitconfig +++ b/.gitconfig @@ -95,7 +95,7 @@ ssb = status --short --branch - aliases = !"git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'" + aliases = !"git config --get-regexp 'alias.' | colrm 1 6 | sed 's/ / = /'" add-alias = "!f() { [ $# = 3 ] && git config $1 alias.\"$2\" \"$3\" && return 0 || echo \"Usage: git add-(local|global)-alias \" >&2 && return 1; }; f" add-global-alias = "!git add-alias --global"