borg-completion.1 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .
  4. .nr rst2man-indent-level 0
  5. .
  6. .de1 rstReportMargin
  7. \\$1 \\n[an-margin]
  8. level \\n[rst2man-indent-level]
  9. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  10. -
  11. \\n[rst2man-indent0]
  12. \\n[rst2man-indent1]
  13. \\n[rst2man-indent2]
  14. ..
  15. .de1 INDENT
  16. .\" .rstReportMargin pre:
  17. . RS \\$1
  18. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  19. . nr rst2man-indent-level +1
  20. .\" .rstReportMargin post:
  21. ..
  22. .de UNINDENT
  23. . RE
  24. .\" indent \\n[an-margin]
  25. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  26. .nr rst2man-indent-level -1
  27. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  28. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  29. ..
  30. .TH "BORG-COMPLETION" "1" "2025-11-17" "" "borg backup tool"
  31. .SH NAME
  32. borg-completion \- Output shell completion script for the given shell.
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] completion [options] SHELL
  36. .SH DESCRIPTION
  37. .sp
  38. This command prints a shell completion script for the given shell.
  39. .sp
  40. Please note that for some dynamic completions (like archive IDs), the shell
  41. completion script will call borg to query the repository. This will work best
  42. if that call can be made without prompting for user input, so you may want to
  43. set BORG_REPO and BORG_PASSPHRASE environment variables.
  44. .SH OPTIONS
  45. .sp
  46. See \fIborg\-common(1)\fP for common options of Borg commands.
  47. .SS arguments
  48. .INDENT 0.0
  49. .TP
  50. .B SHELL
  51. shell to generate completion for (one of: %(choices)s)
  52. .UNINDENT
  53. .SH EXAMPLES
  54. .sp
  55. To activate completion in your current shell session, evaluate the output
  56. of this command. To enable it persistently, add the corresponding line to
  57. your shell\(aqs startup file.
  58. .INDENT 0.0
  59. .INDENT 3.5
  60. .sp
  61. .EX
  62. # Bash (in ~/.bashrc)
  63. eval \(dq$(borg completion bash)\(dq
  64. # Zsh (in ~/.zshrc)
  65. eval \(dq$(borg completion zsh)\(dq
  66. .EE
  67. .UNINDENT
  68. .UNINDENT
  69. .SH SEE ALSO
  70. .sp
  71. \fIborg\-common(1)\fP
  72. .SH AUTHOR
  73. The Borg Collective
  74. .\" Generated by docutils manpage writer.
  75. .