DEV Community

Euber Alexandre Barbosa
Euber Alexandre Barbosa

Posted on Edited on

Wes, apenas outro gerenciador de dotfiles

Dotfiles, como implicado por seu nome, são arquivos com um pontinho anterior ao nome, que configuram o estado inicial dos programas e usualmente vivem - escondidos, nos diretorios do $HOME.

Users craft their dotfiles through the years with a such a care that them can easily be the most sensible and essential files in their system, version-controlling is a must, of course.

There is even a culture of proudly publicly sharing dotfiles, and that’s a good way to grab some cool snippets.

We all love how frugal and simple to use are the Linux tools as find, grep or ls, so I kept that in mind on cooking up Wes.

Wes creates links of all files in the target directory, perfectly mirroring them in the destination directory, $HOME by default:

wes --root /data/dotfile_folder --create

Of course you can just try it out first:

wes --root /data/dotfile_folder --pretend

To remove all linked files, it goes as:

wes -r /data/dotfile_folder --remove

It goes as easy to set a different destination:

wes -r /data/bin --to ~/.local/bin --create

We don’t want that just every file to be linked, eg: LICENSE. For those files, you can pin out their location by feeding the .wesignore, that follows docker’s .dockerignore.

Conflicting files found at the destination directory are moved up to $HOME/.backup.

And that is it.

For more information, check the README.md in the main repository, or the --help option.

Mas eu reconheço que apenas as versões em Python, Guile, e Go estão parcialmente funcionais.

Com isso tudo dito, escolha seu veneno! :)

PS: Em caso você está imaginando qualé essa de varias main., quando vou brincar com uma nova linguagem **Wes* é uma otima mesa de laboratorio com bons desafios para aprender essas.

Em homenagem ao grandioso Wes Montgomery.

Top comments (0)

The discussion has been locked. New comments can't be added.