2018-02-09 19:33:26 +01:00
|
|
|
# stow
|
|
|
|
|
|
|
|
> Symlink manager.
|
|
|
|
> Often used to manage dotfiles.
|
2024-04-04 01:34:14 -03:00
|
|
|
> See also: `chezmoi`, `tuckr`, `vcsh`, `homeshick`.
|
2025-03-26 02:30:50 +02:00
|
|
|
> More information: <https://www.gnu.org/software/stow/manual/html_node/Invoking-Stow.html>.
|
2018-02-09 19:33:26 +01:00
|
|
|
|
|
|
|
- Symlink all files recursively to a given directory:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`stow {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}`
|
2018-02-09 19:33:26 +01:00
|
|
|
|
|
|
|
- Delete symlinks recursively from a given directory:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`stow {{[-D|--delete]}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}`
|
2018-02-09 19:33:26 +01:00
|
|
|
|
|
|
|
- Simulate to see what the result would be like:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`stow {{[-n|--simulate]}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}`
|
2018-02-09 19:33:26 +01:00
|
|
|
|
|
|
|
- Delete and resymlink:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`stow {{[-R|--restow]}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}`
|
2018-02-09 19:33:26 +01:00
|
|
|
|
|
|
|
- Exclude files matching a regular expression:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`stow --ignore={{regular_expression}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}`
|