bash_aliases: add git alias "mktarxz"
This commit is contained in:
parent
f110815bbe
commit
a9507a2982
@ -131,6 +131,7 @@ function git-config-joshs()
|
||||
git config --global alias.gdiffc 'difftool -y -t gvimdiff --cached'
|
||||
git config --global alias.wdiff 'diff --word-diff=color'
|
||||
git config --global alias.mktar '!function f { name="$1"; pos="$2"; if [ "$pos" == "" ]; then pos=HEAD; fi; git archive --prefix="$name"/ "$pos" | bzip2 > ../"$name".tar.bz2; }; f'
|
||||
git config --global alias.mktarxz '!function f { name="$1"; pos="$2"; if [ "$pos" == "" ]; then pos=HEAD; fi; git archive --prefix="$name"/ "$pos" | xz > ../"$name".tar.xz; }; f'
|
||||
git config --global push.default tracking
|
||||
if [ -e /bin/cygwin1.dll ]; then
|
||||
git config --global alias.bcdiff 'difftool -y -t bc2'
|
||||
|
Loading…
x
Reference in New Issue
Block a user