Add bin/,ccd

This commit is contained in:
Kasper Juul Hermansen 2023-08-26 12:20:13 +02:00
parent b0fcb13270
commit 2d6a86be3c
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

10
bin/executable_,ccd Normal file
View File

@ -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)"