From 67abf17600938224f4cf49eb755099a316fc1aae Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:51:43 -0500 Subject: [PATCH] (bash) update cl --- bash/.bashrc.arch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bash/.bashrc.arch b/bash/.bashrc.arch index 420ad1e..8374b41 100644 --- a/bash/.bashrc.arch +++ b/bash/.bashrc.arch @@ -165,6 +165,12 @@ cl() { domain=$1 repository_name=$2 fi + if [[ $# -eq 3 ]]; then + # it has been given a domain, namespace and repository name + domain=$1 + namespace=$2 + repository_name=$3 + fi url="git@git$domain.com:$namespace/$repository_name.git" else echo -e "$ERROR Invalid URL format"