bashrcd
GNU Stow
bashrcd | GNU Stow | |
---|---|---|
1 | 4 | |
0 | 548 | |
- | - | |
2.5 | 9.2 | |
3 months ago | 24 days ago | |
Shell | Perl | |
Apache License 2.0 | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bashrcd
-
Using GNU Stow to manage your dotfiles (2012)
I moved to splitting my bashrc into multiple files and having my main bashrc source them from a ~/.bashrcd directory.
At heart it's a short snippet that just checks for existence and sources each file in the directory:
https://github.com/targaryen/bashrcd/blob/master/install/ins...
I added aliases to list/edit/remove entries from the .bashrcd directory and resource it. And a script I can call with a one-liner to edit bashrc on a new machine to add the sourcing and the helper aliases.
It'll load alphabetically so I can prefix entries with a number to specify load order (defaulting to 0100 so I don't need to specify this in the commands unless I explicitly changed them).
So the end result is that I can quickly edit or create a new bashrc entry by running 'ebrc entryname'. This opens ~/.bashrcd/0100--entryname in vi, and when it's saved it'll re-source so the add/change takes effect immediately.
Or 'lbrc' to list contents of the directory, or 'rbrc entryname' to remove ~/.bashrcd/0100--entryname
It's fairly simplistic but takes away most of the cognitive load of managing a complex bashrc.
GNU Stow
-
GNU Stow is a very useful Perl program but it has some minor issues that need to be fixed
I use GNU Stow to symlink many shell and configuration files from a repository. It works so well and there are many webpages out there from people telling you how it's the best way to manage dotfiles.
-
Is it a good idea to backup my filesystem on github?
Gnu Stow
- Give Your Dotfiles a Home with GNU Stow
-
Using GNU Stow to manage your dotfiles (2012)
Too bad that's broken for directory names: https://github.com/aspiers/stow/issues/33
What are some alternatives?
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
chezmoi - Manage your dotfiles across multiple diverse machines, securely.
nix - my nix modules, overlays, host configurations, and more!
yadm - Yet Another Dotfiles Manager
zinit - Flexible and fast Zsh plugin manager with clean fpath, reports, completion management, Turbo, annexes, services, packages.
dotfiles - Settings for various tools I use.
rcm - rc file (dotfile) management
bashdot - Minimalist dotfile management framework.
Ansible - Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.
dotbot - A tool that bootstraps your dotfiles ⚡️
homesick - Your home directory is your castle. Don't leave your dotfiles behind.