RetroFed Forum
Your home away from modern life.
announcement : link-batch.zsh, to generate symlinks batches
Post Reply
AuthorMessage
chimay lemmy.world chimay@lemmy.world
Joined: 2023-06-15
Quote

cross-posted from: https://lemmy.world/post/1838642

link-batch is a minimalist script that generate symlinks from a list in a text file. Usage :

link-batch.zsh link-list.txt

where link-list.txt contains two columns : the first one for the links and the second one for the targets. Example :

~/.config/kitty	~/myfiles/config/kitty
~/.config/nvim	~/myfiles/config/neovim
~/.config/MuseScore	~/myfiles/config/MuseScore/$HOST
...

The two columns must be separated by a tab.

Can be used to quickly deploy all home links in a fresh box.

1   Original
Post Reply
Back to top