From: Nicolas Boisselier Date: Fri, 19 Aug 2016 10:57:30 +0000 (+0100) Subject: GIT_REPO X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=005119281b998c6e2feee1a4485857e1afc7c03e;p=nb.git GIT_REPO --- diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index 46ac6b2e..0c9c1fcf 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -1,6 +1,8 @@ #-------------------------------------------------------------------------------- # Git # +GIT_REPO='git@git.nbdom.net' + alias git_grep="git grep --color=auto" alias git_ls_tree="git ls-tree --full-tree -r HEAD" alias git_ls_files="git ls-files" @@ -70,7 +72,6 @@ git_commit_push_add() { git add . && git_commit_push "$*" } -GIT_REPO='git@git.nbdom.net' git_create() { # NB 14.04.16 shell_help_noarg "Usage: $FUNCNAME DIRECTORY" "$@" && return 1 # NB 14.04.16 declare dir="$1"; shift @@ -108,5 +109,5 @@ git_create() { } git_clone() { - git clone git@git.nbdom.net:${1%.git}.git + git clone $GIT_REPO:${1%.git}.git }