You could use something like which is a python port of stow but needs to have python installed on your system (please use python 3.6+). A few extra steps needed to get them to work in windows. I also have _setup/arch.sh for installing my packages using pacman or trizen.įrom here, you can see how this simple setup can make it much easier to manage your dotfiles for linux and osx. I use _setup/osx.sh for example to install homebrew and homebrew packages, and setup other system settings. You can keep other setup files for your system that should only be run once. I haven’t yet talked much about the _setup directory we made. I have showed you how to manage your dotfiles like a pro. Now it will compare $DOT/termite/.config/termite with $HOME/.config/termite and see that that it doesn’t exist yet in $HOME/.config/termite and will essentially run Since $HOME/.config is already there, we must go one level deeper. When we run stow -R -t ~ termite it takes the source directory, in this case $DOT/termite and maps it’s contents to the target directory, which is ~ aka $HOME. Or, more specifically, $XDG_CONFIG_HOME/termite as $XDG_CONFIG_HOME usually defaults to $HOME/.config anyways. The program termite keeps it’s configuration file not in $HOME, but in $HOME/.config/termite. So if you don’t use termite, just read along. I mostly have this here to help you understand how it copies directories over. Now, in the $HOME/bin directory, you can place any commands you want available system wide. Now when you copy a command from a code sample and also copy the $ character, it will continue to run the command but will also give a message (if you wish) about making sure not to copy the $. Install the stow binary on your platform of choice.Įnter fullscreen mode Exit fullscreen mode On windows, you can use a tool called dploy mentioned later.įirst thing is first. Stow has other advanced usages and way to run it. However these tools can still be automated. So it might be only items such as ssh, orchestration tools like docker, and language specific things like environments in python, build targets for Rust, or setting up Go. how to manage your dotfiles like a pro.ĭevelopers don’t often have to deal with managing dotfiles on windows. But it should not be hard to handle your dotfiles like a pro. If duct tape really was a developer tool, it would surely be found here. But more often than not for many, things “just work”. Managing your dotfiles is a fairly common thing for developers. I will be publishing new content every week or so, and you can sign up to my newsletter if you'd like to receive my articles and other info tidbits directly to your inbox! This is a cross-post from my content blog.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |