diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-10-05 22:41:55 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-10-05 22:41:55 +0900 |
| commit | 9754c1aaf16e3698580d97dbf0ad8b8ccb48ed71 (patch) | |
| tree | d099a7930580989ce79b19dc4051ebf1b569bc9a | |
| parent | c6986c452a1938195ea3c1290e9444015f7e20ee (diff) | |
modified zsh/scripts.zsh
| -rw-r--r-- | ar/.config/zsh/scripts.zsh | 6 |
1 files 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 - } |
