Move repo search prefix out to config

This commit is contained in:
2024-05-19 22:51:06 +10:00
parent 866123d4fb
commit 40b0943fff
2 changed files with 2 additions and 2 deletions

2
repo
View File

@ -27,7 +27,7 @@ repos=$(find "${REPOSITORY_BASE}" -name '.git' | sed "s|${REPO_BASE}/||" | sed '
# Default to searching within github.com, because that's by far the most common
# place for repos to be.
# selected=$(echo "${repos}" | gum filter --header="Pick a repo" --prompt="Repo: " --height=20 --value "github.com/${1}")
selected="$(echo "${repos}" | fzf -1 -0 -q "github.com/buildkite/${1}" --prompt="Repo: ")"
selected="$(echo "${repos}" | fzf -1 -0 -q "${REPO_DEFAULT_SEARCH_PREFIX}${1}" --prompt="Repo: ")"
echo "$REPOSITORY_BASE/$selected"