From: Oleg Broytman Date: Mon, 27 Feb 2017 19:58:09 +0000 (+0300) Subject: .gitconfig: use cut instead or colrm X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=864d1291c60b1357a7072cd392cdcfe2cde970c3;p=dotfiles.git .gitconfig: use cut instead or colrm --- diff --git a/.gitconfig b/.gitconfig index 74673eb..6e59db2 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\\.' | cut -c7- | 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 = "!exec git add-alias --global"