Create New Document

The title of your document (will be displayed as H1)
URL-friendly name (no spaces, use dashes)
Path where to create document (optional, use forward slashes to create subdirectories)

Move/Rename Document

Current location of the document
New path for the document (including the slug)
This only changes the document's path. It does not modify the document's title (H1 heading).

Delete Document

Are you sure you want to delete this document? This action cannot be undone.

Warning: If this is a folder, all contents including subfolders and documents will be deleted.

Message

Message content goes here.

Confirm Action

Are you sure?

Attachments

Allowed file types: jpg, jpeg, png, gif, svg, webp, txt, log, csv, sfd, zip, pdf, docx, xlsx, pptx, mp4 (Max: 10MB)

Document Files

Loading attached files...

Document History

Previous Versions

Loading versions...

Preview

Select a version to preview

Wiki Settings

Language for the user interface
Number of versions to keep per document. Set to 0 to disable versioning.
Maximum allowed file size for uploads in MB.

User Management

Add New User

Leave empty to keep current password
Users with these groups can access restricted sections.

Define path-based access rules for sections of your wiki, then assign users to groups in the Users tab. Rules are evaluated in order. First match wins.

Active Rules

Import markdown files from a ZIP archive. Files will be processed and stored in the appropriate document structure. Directory structure in the ZIP (category/subcategory) will be preserved in the wiki.

Upload a ZIP file containing markdown (.md) files to import.

Create and manage backups of your wiki data. Backups include all documents, images, and configuration files.

Available Backups

Loading backups...

Add/Edit Access Rule

Selected: /

Add Column

Banner

Completion

你执行了 headscale completion bash,输出的是自动补全脚本的源代码,而不是实际安装补全功能。

当前状态
命令只是打印了补全脚本到终端(stdout),并没有实际安装。你需要将这个脚本内容重定向到正确的目录,或者执行它才能生效。

如何正确安装 Bash 补全
方法一:保存到系统补全目录(推荐)
bash
headscale completion bash > /etc/bash_completion.d/headscale
然后重新加载补全:

bash
source /etc/bash_completion.d/headscale
方法二:保存到用户目录
bash
headscale completion bash > ~/.headscale-completion.bash
source ~/.headscale-completion.bash
方法三:直接保存到 .bashrc
bash
headscale completion bash >> ~/.bashrc
source ~/.bashrc
验证安装
安装后,输入以下命令测试:

bash
headscale apikeys
应该会看到 create、delete、expire、list 等子命令的补全提示。

注意事项
/etc/bash_completion.d/ 目录可能不存在,如果不存在可以创建它,或者使用 ~/.bashrc 方式

如果你使用的是 CentOS/RHEL,补全目录通常是 /etc/bash_completion.d/

如果你使用的是 Ubuntu/Debian,补全目录可能是 /usr/share/bash-completion/completions/

快速操作
根据你当前系统(看起来是 CentOS/RHEL),执行:

bash
headscale completion bash > /etc/bash_completion.d/headscale
source /etc/bash_completion.d/headscale
然后就可以使用 Tab 补全了。

Attached Files

Loading attached files...
Search Results