From 67b6003970eaea04a502daf3e71b19646a6bd58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Fri, 9 Feb 2018 19:33:26 +0100 Subject: [PATCH] stow: add page (#1979) --- pages/common/stow.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/stow.md diff --git a/pages/common/stow.md b/pages/common/stow.md new file mode 100644 index 000000000..a89e0163e --- /dev/null +++ b/pages/common/stow.md @@ -0,0 +1,24 @@ +# stow + +> Symlink manager. +> Often used to manage dotfiles. + +- Symlink all files recursively to a given directory: + +`stow --target={{path/to/target_directory}} {{file1 folder1 file2 folder2}}` + +- Delete symlinks recursively from a given directory: + +`stow --delete --target={{path/to/target_directory}} {{file1 folder1 file2 folder2}}` + +- Simulate to see what the result would be like: + +`stow --simulate --target={{path/to/target_directory}} {{file1 folder1 file2 folder2}}` + +- Delete and resymlink: + +`stow --restow --target={{path/to/target_directory}} {{file1 folder1 file2 folder2}}` + +- Exclude files matching a regular expression: + +`stow --ignore={{regex}} --target={{path/to/target_directory}} {{file1 folder1 file2 folder2}}`