File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -915,6 +915,13 @@ generate-manpage: ## generate manpage
915915	@gzip -9 man/man1/gitea.1 &&  echo  man/man1/gitea.1.gz created
916916	@# TODO A small script that formats config-cheat-sheet.en-us.md nicely for use as a config man page
917917
918+ .PHONY : generate-completions
919+ generate-completions : # # generate shell completions
920+ 	@[ -f  gitea ]  ||  make backend
921+ 	@./gitea completion bash >  contrib/autocompletion/bash_autocomplete
922+ 	@./gitea completion zsh  >  contrib/autocompletion/zsh_autocomplete
923+ 	@./gitea completion fish >  contrib/autocompletion/gitea.fish
924+ 
918925.PHONY : docker
919926docker :
920927	docker build --disable-content-trust=false -t $(DOCKER_REF )  . 
Original file line number Diff line number Diff line change @@ -7,11 +7,17 @@ From within the gitea root run:
77source contrib/autocompletion/bash_autocomplete
88```
99
10- or  for zsh run:
10+ for zsh run:
1111
12- ```bash 
12+ ```zsh 
1313source contrib/autocompletion/zsh_autocomplete
1414```
1515
16+ and for fish:
17+ 
18+ ```fish
19+ source contrib/autocompletion/gitea.fish
20+ ```
21+ 
1622These scripts will check if gitea is on the path and if so add autocompletion for `gitea`. Or if not autocompletion will work for `./gitea`.
1723If gitea has been installed as a different program pass in the `PROG` environment variable to set the correct program name.
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments