···3232alias aic="aicommits --type conventional"
33333434# if machine name is asteroid..
3535-if [[ $(hostname) == "asteroid" ]]; then
3535+if [[ $(hostname) == "asteroid.local" ]]; then
3636 alias mro="glab mr view -w"
3737 alias mktkt=$HOME/dotfiles/scripts/zapier/make-ticket.sh
3838 alias mkmr=$HOME/dotfiles/scripts/zapier/make-mr.sh
3939 alias mkuser=$HOME/dotfiles/scripts/zapier/make-test-user.sh
4040+ alias zghorg="ghorg --config ~/code/zapier/ghorg-conf.yaml clone zapier"
4141+ alias zrepos="vim ~/code/zapier/.ghorg-repos"
4242+4343+ function zsearch {
4444+ local query=$1
4545+4646+ if [ -z "$query" ]; then
4747+ echo "Usage: zsearch <query>"
4848+ return 1
4949+ fi
5050+5151+ # Search through the zapier repos using glab
5252+ glab repo search -s "zapier $query"
5353+ }
5454+5555+ function zradd {
5656+ local repo_name=$1
5757+5858+ if [ -z "$repo_name" ]; then
5959+ echo "Usage: zradd <repo-name>"
6060+ return 1
6161+ fi
6262+6363+ if ! glab repo view zapier/$repo_name &>/dev/null; then
6464+ echo "Repository zapier/$repo_name does not exist"
6565+ return 1
6666+ fi
6767+6868+ local repo_dest="$HOME/code/zapier/$repo_name"
6969+ local repo_list_file="$HOME/code/zapier/.ghorg-repos"
7070+7171+ # if the repo name is not in the repo file already, add it
7272+ if ! grep -q "$repo_name" "$repo_list_file"; then
7373+ echo "$repo_name" >> "$repo_list_file"
7474+ echo "Added $repo_name to $repo_list_file"
7575+ else
7676+ echo "$repo_name is already in $repo_list_file"
7777+ fi
7878+7979+ if [ ! -d "$repo_dest" ]; then
8080+ mkdir -p "$repo_dest"
8181+ glab repo clone zapier/$repo_name $repo_dest
8282+ else
8383+ echo "Repository $repo_dest already exists"
8484+ fi
8585+ }
4086fi
41874288function rand {