From 990e89e8025d739e8ab8a03b8b3c1d4a5f6b4f6b Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sat, 22 Nov 2014 18:41:21 +0000 Subject: [PATCH] git aliases --- etc/bashrc.alias | 8 ++++++++ etc/bashrc.function | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/etc/bashrc.alias b/etc/bashrc.alias index f3296398..d23cfe34 100644 --- a/etc/bashrc.alias +++ b/etc/bashrc.alias @@ -117,3 +117,11 @@ case "$OSTYPE" in darwin*) # NB 25.02.14 alias smartsleep='sudo pmset -a hibernatemode 2' esac + +#-------------------------------------------------------------------------------- +# Git +# +alias git-grep="git grep --color=auto" +alias git-clone-nbdom="clone git@git.nbdom.net" +alias git-ls-tree="git ls-tree --full-tree -r HEAD" +alias git-ls-files="git ls-files" diff --git a/etc/bashrc.function b/etc/bashrc.function index 3434facd..d2225e74 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -24,14 +24,6 @@ case "$OSTYPE" in darwin*) esac -git-grep() { - git grep --color=auto $@ -} - -git-clone-nbdom() { - git clone git@git.nbdom.net:$@ -} - git-commit-push() { git commit -m "$@" -a git push || echo "Try: git push --set-upstream origin master" -- 2.47.3