From 2d6a86be3c29035817652ce1a7f909c3ad5f9c5b Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 26 Aug 2023 12:20:13 +0200 Subject: [PATCH] Add bin/,ccd --- bin/executable_,ccd | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bin/executable_,ccd diff --git a/bin/executable_,ccd b/bin/executable_,ccd new file mode 100644 index 0000000..68e7c2e --- /dev/null +++ b/bin/executable_,ccd @@ -0,0 +1,10 @@ +#!/bin/bash + +nohup toolkit gitea fuzzy-clone update >/dev/null 2>&1 & + +choice=$(toolkit gitea fuzzy-clone --print-dest) +if [[ $? -ne 0 ]]; then + return $? +fi + +cd "$(echo "$choice" | tail --lines 1)"