mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
git-alias: use sed insted of colrm
PortableGit doesn't have colrm command.
This commit is contained in:
parent
5e14c08fc5
commit
22406cef6a
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
case $# in
|
||||
0) git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort ;;
|
||||
0) git config --get-regexp 'alias.*' | sed 's/^alias\.//' | sed 's/[ ]/ = /' | sort ;;
|
||||
1) git alias | grep -e -- "$1" ;;
|
||||
*) git config --global "alias.$1" "$2" ;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Reference in a new issue