From 062cd84d380abb6fd6dd378a16a7c08edc7096ee Mon Sep 17 00:00:00 2001 From: abs3nt <abs3nt@asdf.cafe> Date: Wed, 5 Mar 2025 11:06:54 -0800 Subject: [PATCH] idk --- completions/repo.fish | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/completions/repo.fish b/completions/repo.fish index ab12a31..6ae8d93 100644 --- a/completions/repo.fish +++ b/completions/repo.fish @@ -1,13 +1,5 @@ function __repo_commands - echo "get\tClone a repository" - echo "open\tOpen the repository in a browser" - echo "aur\tClone an AUR repository" - echo "list\tList all repositories" - echo "go\tNavigate to a repository" - echo "goto\tNavigate to a repository" - echo "new\tCreate a new repository" - echo "create\tCreate a new repository" - echo "help\tShow help message" + echo get open aur list go goto new create help end function __repo_needs_command @@ -18,4 +10,12 @@ function __repo_needs_command return 1 end -complete -f -c repo -n __repo_needs_command -a '(__repo_commands)' +complete -f -c repo -n __repo_needs_command -a get -d "Clone a repository" +complete -f -c repo -n __repo_needs_command -a open -d "Open the repository in a browser" +complete -f -c repo -n __repo_needs_command -a aur -d "Clone an AUR repository" +complete -f -c repo -n __repo_needs_command -a list -d "List all repositories" +complete -f -c repo -n __repo_needs_command -a go -d "Navigate to a repository" +complete -f -c repo -n __repo_needs_command -a goto -d "Navigate to a repository" +complete -f -c repo -n __repo_needs_command -a new -d "Create a new repository" +complete -f -c repo -n __repo_needs_command -a create -d "Create a new repository" +complete -f -c repo -n __repo_needs_command -a help -d "Show help message"