code: def completion():
      
      shell = env.get("SHELL", None)
      if env.get("SHELL", None):
          echo(
              click_completion.get_code(
                  shell=shell.split(os.sep)[-1], prog_name="doitlive"
              )
          )
      else:
          echo(
              "Please ensure that the {SHELL} environment "
              "variable is set.".format(SHELL=style("SHELL", bold=True))
          )
          sys.exit(1)
docs: Output completion (to be eval'd).
  
      For bash or zsh, add the following to your .bashrc or .zshrc:
  
          eval "$(doitlive completion)"
  
      For fish, add the following to ~/.config/fish/completions/doitlive.fish:
  
          eval (doitlive completion)