update
This commit is contained in:
parent
0b2e89a703
commit
83d36260e9
5 changed files with 43 additions and 5 deletions
|
|
@ -1 +1 @@
|
|||
false
|
||||
true
|
||||
33
.config/scripts/clone.sh
Executable file
33
.config/scripts/clone.sh
Executable 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
|
||||
|
|
@ -70,3 +70,7 @@ ai () {
|
|||
set-env
|
||||
nvim +CodeCompanionChat -c only
|
||||
}
|
||||
|
||||
clone () {
|
||||
~/.config/scripts/clone.sh clone $1 $2
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
zoxide
|
||||
bat
|
||||
opentofu
|
||||
helm
|
||||
vivid
|
||||
stow
|
||||
bitwarden-cli
|
||||
|
|
@ -26,19 +25,17 @@
|
|||
podman
|
||||
podman-compose
|
||||
podman-desktop
|
||||
helm
|
||||
htop
|
||||
gimp
|
||||
yazi
|
||||
powershell
|
||||
devpod
|
||||
devpod-desktop
|
||||
nerd-fonts.go-mono
|
||||
libsecret
|
||||
zenity
|
||||
librewolf
|
||||
libnotify
|
||||
wl-clipboard
|
||||
dnsutils
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ required_packages_brew:
|
|||
#- ansible
|
||||
#- ffmpeg
|
||||
#- k9s
|
||||
- helm
|
||||
|
||||
required_packages_apt:
|
||||
- stow
|
||||
|
|
@ -42,6 +43,7 @@ required_packages_apt:
|
|||
- libpam-yubico
|
||||
- yubikey-personalization
|
||||
- yubikey-manager
|
||||
- distrobox
|
||||
#- htop
|
||||
#- curl
|
||||
#- xsel
|
||||
|
|
@ -88,6 +90,8 @@ required_packages_flatpak:
|
|||
- com.spotify.Client
|
||||
- org.signal.Signal
|
||||
- com.yubico.yubioath
|
||||
- org.gnome.Calculator
|
||||
- io.gitlab.librewolf-community
|
||||
|
||||
#go_version_target: "go version go1.23.4 linux/amd64"
|
||||
#go_tarball: "go1.23.5.linux-amd64.tar.gz"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue