This commit is contained in:
DeveloperDurp 2025-12-20 07:47:55 -06:00
parent 0b2e89a703
commit 83d36260e9
5 changed files with 43 additions and 5 deletions

View file

@ -1 +1 @@
false true

33
.config/scripts/clone.sh Executable file
View file

@ -0,0 +1,33 @@
#!/usr/bin/zsh
clone() {
# Ensure $1 is a valid git SSH URL
if [[ ! "$1" =~ ^git@[^:]+:[^/]+/.+\.git$ ]]; then
echo "Error: Invalid git SSH URL"
return 1
fi
# Check if $2 is provided
if [ -n "$2" ]; then
REPO="$2"
else
REPO=$(echo $1 | awk -F'/' '{print $NF}' | sed 's/\.git$//')
fi
dir=$(find $HOME/Documents/gitlab -mindepth 1 -maxdepth 1 -type d | awk -F/ '{print $(NF-0) " " $0}' | fzf --reverse --header "Clone Location" --with-nth=1 | awk '{print $2}')
[ -z "$dir" ] && return 1
# Check if the directory already exists
if [ -d "$dir/$REPO" ]; then
echo "Error: $dir/$REPO already exists"
return 1
fi
git clone "$1" "$dir/$REPO"
}
case "$1" in
clone) clone $2 $3 ;;
*) echo "Please enter an action" ;;
esac

View file

@ -70,3 +70,7 @@ ai () {
set-env set-env
nvim +CodeCompanionChat -c only nvim +CodeCompanionChat -c only
} }
clone () {
~/.config/scripts/clone.sh clone $1 $2
}

View file

@ -16,7 +16,6 @@
zoxide zoxide
bat bat
opentofu opentofu
helm
vivid vivid
stow stow
bitwarden-cli bitwarden-cli
@ -26,19 +25,17 @@
podman podman
podman-compose podman-compose
podman-desktop podman-desktop
helm
htop htop
gimp gimp
yazi yazi
powershell powershell
devpod devpod
devpod-desktop
nerd-fonts.go-mono nerd-fonts.go-mono
libsecret libsecret
zenity zenity
librewolf
libnotify libnotify
wl-clipboard wl-clipboard
dnsutils
]; ];
}; };
}; };

View file

@ -22,6 +22,7 @@ required_packages_brew:
#- ansible #- ansible
#- ffmpeg #- ffmpeg
#- k9s #- k9s
- helm
required_packages_apt: required_packages_apt:
- stow - stow
@ -42,6 +43,7 @@ required_packages_apt:
- libpam-yubico - libpam-yubico
- yubikey-personalization - yubikey-personalization
- yubikey-manager - yubikey-manager
- distrobox
#- htop #- htop
#- curl #- curl
#- xsel #- xsel
@ -88,6 +90,8 @@ required_packages_flatpak:
- com.spotify.Client - com.spotify.Client
- org.signal.Signal - org.signal.Signal
- com.yubico.yubioath - com.yubico.yubioath
- org.gnome.Calculator
- io.gitlab.librewolf-community
#go_version_target: "go version go1.23.4 linux/amd64" #go_version_target: "go version go1.23.4 linux/amd64"
#go_tarball: "go1.23.5.linux-amd64.tar.gz" #go_tarball: "go1.23.5.linux-amd64.tar.gz"