feat(tmux): add tmux-ggclone and copy support for linux and mac

This commit is contained in:
2024-01-25 19:52:31 +01:00
parent f1e8dc27e5
commit afc6af93ca
3 changed files with 27 additions and 2 deletions

15
tmux/tmux-ggclone Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
if [[ $# -eq 1 ]]; then
selected=$1
else
read -p "ssh url: " selected
fi
if [[ -z $selected ]]; then
exit 0
fi
ggman clone "$selected"
find -L $GGROOT -mindepth 1 -maxdepth 5 -type d -name .git -prune | xargs -n 1 dirname > "$GGROOT/compiled"