From b2b094de7f1d058cf390d829b32f6e9920ae45c8 Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Thu, 15 Jan 2026 16:52:10 +0100 Subject: [PATCH] [git] Add git-clonecd function --- modules/git/functions/git-clonecd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/git/functions/git-clonecd diff --git a/modules/git/functions/git-clonecd b/modules/git/functions/git-clonecd new file mode 100644 index 0000000..4caaff0 --- /dev/null +++ b/modules/git/functions/git-clonecd @@ -0,0 +1,14 @@ +# +# Clone and cd +# +# Authors: +# Daniel Carrillo +# + +# function git-clonecd { + +local url=$1 + +git clone $url && cd "$(basename "$_" .git)" + +# }