x root
x-cmd root directory management
Examples
Change the actual path pointed to by the current x-cmd root directory, pointing ___X_CMD_ROOT to path/to/repoint
x root repoint apply path/to/repointRestore the current x-cmd root directory to its default path
x root repoint revokeList all key x-cmd variables and their corresponding directory paths
x rootActivate dotconfig link, move config to ~/.config/x-cmd-cfg
x root dotconfig activateSub Commands
| Name | Description |
|---|---|
| x root ls | List all key x-cmd variables and their corresponding directory paths |
| x root repoint | Manage the actual path pointed to by the current x-cmd root directory, i.e., the path pointed to by ___X_CMD_ROOT |
| x root dotconfig | Map x-cmd module configuration to ~/.config for easy global synchronization with tools like chezmoi |
x root ls
List all key x-cmd variables and their corresponding directory paths
- Usage:
x root lsx root repoint
Manage the actual path pointed to by the current x-cmd root directory, i.e., the path pointed to by ___X_CMD_ROOT
- Sub Commands:
| Name | Description |
|---|---|
| x root repoint current | Get the actual path pointed to by the current x-cmd root directory |
| x root repoint apply | Set the actual path pointed to by the current x-cmd root directory |
| x root repoint revoke | Revert the current x-cmd root directory to its default path |
x root repoint current
Get the actual path pointed to by the current x-cmd root directory
- Usage:
x root repoint currentx root repoint apply
Set the actual path pointed to by the current x-cmd root directory
- Usage:
x root repoint applyx root repoint revoke
Revert the current x-cmd root directory to its default path
- Usage:
x root repoint revokex root dotconfig
Map x-cmd module configuration to ~/.config for easy global synchronization with tools like chezmoi
- Examples:
Activate dotconfig link, move config to ~/.config/x-cmd-cfg
x root dotconfig activateCheck current status of dotconfig link
x root dotconfig statusCheck if dotconfig is activated
x root dotconfig isactivated- Sub Commands:
| Name | Description |
|---|---|
| x root dotconfig activate | Activate dotconfig link, move config directory to ~/.config/x-cmd-cfg and create symlink |
| x root dotconfig isactivated | Check if dotconfig link is activated |
| x root dotconfig status | Show current status of dotconfig link |
x root dotconfig activate
Activate dotconfig link, move config directory to ~/.config/x-cmd-cfg and create symlink
- Usage:
x root dotconfig activatex root dotconfig isactivated
Check if dotconfig link is activated
- Usage:
x root dotconfig isactivatedx root dotconfig status
Show current status of dotconfig link
- Usage:
x root dotconfig statusTIP
In interactive terminal ( zsh, bash ... ), Can use Tab to get completion information
Run CMD SUBCOMMAND --help for more information on a command
This article author
Please indicate the source and link of this article when reprinting.
Help us make these docs great!
All X-CMD docs are generated from command help and multiple data sources. See something that's wrong or unclear? Feel free to let us know through any of these ways~