From 7385d20b7cdb0da3d1a9507ec429707e5e7a5069 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sat, 22 Nov 2014 23:53:12 +0000 Subject: [PATCH] bashrc --- etc/bashrc.alias | 1 - etc/bashrc.function | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) 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" -- 2.47.3