diff --git a/config.bash.example b/config.bash.example index 06ef87e..9e89e9b 100644 --- a/config.bash.example +++ b/config.bash.example @@ -7,4 +7,4 @@ REPOSITORY_BASE=~/src # If a variable is only to be used by a single script, by custom it will be # prefixed with the name of the script. -REPO_DEFAULT_SEARCH_PREFIX="github.com/buildkite" +REPO_DEFAULT_SEARCH_PREFIX="github.com/buildkite/" diff --git a/repo b/repo index 1d7d6e8..7ada458 100755 --- a/repo +++ b/repo @@ -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"