]> git.phdru.name Git - dotfiles.git/commitdiff
.gitconfig: fix 'aliases' alias
authorOleg Broytman <phd@phdru.name>
Sun, 14 Aug 2016 20:18:03 +0000 (23:18 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 14 Aug 2016 20:18:03 +0000 (23:18 +0300)
.gitconfig

index 96982e4f56411707f1a2f6f999e65205568a7b53..4274c6f7acc52db3c24c4064fea18e632d80b836 100644 (file)
@@ -95,7 +95,7 @@
 
   ssb = status --short --branch
 
 
   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 <new alias> <original command>\" >&2 && return 1; }; f"
   add-global-alias = "!exec git add-alias --global"
 
   add-alias = "!f() { [ $# = 3 ] && git config $1 alias.\"$2\" \"$3\" && return 0 || echo \"Usage: git add-(local|global)-alias <new alias> <original command>\" >&2 && return 1; }; f"
   add-global-alias = "!exec git add-alias --global"