Improve shebang of bash completion script

Signed-off-by: haruna <w10776e8w@yahoo.co.jp>
This commit is contained in:
haruna
2025-05-10 05:31:23 +09:00
committed by Brad Davidson
parent f7f546a23e
commit d256968ee4

View File

@@ -28,7 +28,7 @@ func Run(ctx *cli.Context) error {
func genCompletionScript(shell string) (string, error) {
var completionScript string
if shell == "bash" {
completionScript = fmt.Sprintf(`#! /bin/bash
completionScript = fmt.Sprintf(`#!/usr/bin/env bash
_cli_bash_autocomplete() {
if [[ "${COMP_WORDS[0]}" != "source" ]]; then
local cur opts base