From: Nicolas Boisselier Date: Sat, 22 Nov 2014 23:53:12 +0000 (+0000) Subject: bashrc X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=7385d20b7cdb0da3d1a9507ec429707e5e7a5069;p=nb.git bashrc --- diff --git a/etc/bashrc.alias b/etc/bashrc.alias index d23cfe34..158ab21d 100644 --- a/etc/bashrc.alias +++ b/etc/bashrc.alias @@ -122,6 +122,5 @@ 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 d2225e74..9eab5bc8 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -24,6 +24,10 @@ case "$OSTYPE" in darwin*) esac +function git-clone-nbdom() { + git clone git@git.nbdom.net:$1.git +} + git-commit-push() { git commit -m "$@" -a git push || echo "Try: git push --set-upstream origin master"