1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-16 15:15:24 +02:00
tldr/pages/common/stow.md

27 lines
992 B
Markdown
Raw Normal View History

2018-02-09 19:33:26 +01:00
# stow
> Symlink manager.
> Often used to manage dotfiles.
> See also: `chezmoi`, `tuckr`, `vcsh`, `homeshick`.
> 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:
`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:
`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:
`stow {{[-n|--simulate]}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}`
2018-02-09 19:33:26 +01:00
- Delete and resymlink:
`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:
`stow --ignore={{regular_expression}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}`