← 返回命令列表

Linux command

dotbot 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install dotfiles with config

dotbot -c [install.conf.yaml]

Specify dotfiles directory

dotbot -d [~/dotfiles] -c [install.conf.yaml]

Run with verbose output

dotbot -v -c [install.conf.yaml]

Use specific plugin

dotbot -p [plugin.py] -c [install.conf.yaml]

Run only specific directives

dotbot -c [install.conf.yaml] --only [link shell]

Run all directives except specified ones

dotbot -c [install.conf.yaml] --except [shell]

说明

Dotbot is a tool for bootstrapping dotfiles. It automates the process of setting up a new machine by creating symlinks, running shell commands, and performing other configuration tasks defined in a YAML or JSON file. Configuration files define directives like link (create symlinks), shell (run commands), create (make directories), and clean (remove broken symlinks). Dotbot is typically included as a git submodule in dotfiles repositories.

参数

-c, --config-file _file_
Configuration file (YAML or JSON).
-d, --base-directory _dir_
Base directory for dotfiles.
-p, --plugin _plugin_
Load plugin module.
-v, --verbose
Enable verbose output.
-q, --quiet
Suppress most output.
-Q, --super-quiet
Suppress almost all output.
--plugin-dir _dir_
Load all plugins in a directory.
--only _directives_
Only run specified directives.
--except _directives_
Run all directives except those specified.
--no-color
Disable colored output.
--force-color
Force colored output.
--version
Show version.

FAQ

What is the dotbot command used for?

Dotbot is a tool for bootstrapping dotfiles. It automates the process of setting up a new machine by creating symlinks, running shell commands, and performing other configuration tasks defined in a YAML or JSON file. Configuration files define directives like link (create symlinks), shell (run commands), create (make directories), and clean (remove broken symlinks). Dotbot is typically included as a git submodule in dotfiles repositories.

How do I run a basic dotbot example?

Run `dotbot -c [install.conf.yaml]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c, --config-file _file_ do in dotbot?

Configuration file (YAML or JSON).