From 9754c1aaf16e3698580d97dbf0ad8b8ccb48ed71 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 5 Oct 2025 22:41:55 +0900 Subject: modified zsh/scripts.zsh --- ar/.config/zsh/scripts.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ar/.config/zsh/scripts.zsh b/ar/.config/zsh/scripts.zsh index 7f31426..e3364e8 100644 --- a/ar/.config/zsh/scripts.zsh +++ b/ar/.config/zsh/scripts.zsh @@ -262,8 +262,10 @@ function ecryptfs_mount() { alias gcggg=thesiahxyz_git function thesiahxyz_git() { choice=$(ssh "$THESIAH_GIT" "ls -a | grep -i \".*\\.git$\"" | fzf --cycle --prompt="  " --height=50% --layout=reverse --border --exit-0) - [ -n "$choice" ] && [ -n "$1" ] && git clone "${THESIAH_GIT:-git@${THESIAH:-thesiah.xyz}}":"$choice" "$1" || - [ -n "$choice" ] && git clone "${THESIAH_GIT:-git@${THESIAH:-thesiah.xyz}}":"$choice" + [ -d "$HOME/Private/repos" ] || mkdir -p "$HOME/Private/repos" + [ -n "$choice" ] && [ -n "$1" ] && cd "$HOME/Private/repos" && git clone "${THESIAH_GIT:-git@${THESIAH:-thesiah.xyz}}":"$choice" "$1" || + [ -n "$choice" ] && cd "$HOME/Private/repos" && git clone "${THESIAH_GIT:-git@${THESIAH:-thesiah.xyz}}":"$choice" + cd - } -- cgit v1.2.3