← 返回命令列表

Linux command

homeshick 命令

文本

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

常用示例

Create

homeshick generate [castle_name]

Track

homeshick track [castle_name] [path/to/file]

Go

homeshick cd [castle_name]

Clone

homeshick clone [github_username]/[repository_name]

Symlink

homeshick link [castle_name]

说明

homeshick is a Git-based dotfile synchronizer written in Bash. It uses "castles" (Git repositories) to manage dotfiles, creating symlinks from the repository to your home directory. Each castle is a Git repository stored in ~/.homesick/repos/. Files tracked in a castle are moved into the repository and replaced with symlinks pointing back to the repository copy. This allows version control and easy synchronization across machines.

参数

generate _NAME_
Create a new castle (dotfiles repository)
track _CASTLE_ _FILE_
Add a file to a castle and replace with symlink
cd _CASTLE_
Change directory to a castle
clone _URL_
Clone a castle from a Git repository
link _CASTLE_
Create symlinks from castle to home directory
pull _CASTLE_
Pull updates for a castle
check
Check if any castles have updates

FAQ

What is the homeshick command used for?

homeshick is a Git-based dotfile synchronizer written in Bash. It uses "castles" (Git repositories) to manage dotfiles, creating symlinks from the repository to your home directory. Each castle is a Git repository stored in ~/.homesick/repos/. Files tracked in a castle are moved into the repository and replaced with symlinks pointing back to the repository copy. This allows version control and easy synchronization across machines.

How do I run a basic homeshick example?

Run `homeshick generate [castle_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does generate _NAME_ do in homeshick?

Create a new castle (dotfiles repository)