From 005119281b998c6e2feee1a4485857e1afc7c03e Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 19 Aug 2016 11:57:30 +0100 Subject: [PATCH] GIT_REPO --- etc/profile.d/git.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 } -- 2.47.3