ℹ️ The repo has been renamed to make it compatible with Strap.
My own collection of rcfiles for UNIX shells.
NOTE: This is provided AS IS. No warranty. I'm not responsible if this eats your files, or lunch, does anything you don't like, etc. Use at your own risk.
This is a collection of rcfiles (or dotfiles) that I use for my shell environments (currently Linux, Mac OS, and Cygwin).
These collections of files started as a fork of puppetlabs/puppetlabs-rcfiles, but has grown into its own thing over time.
Mainly, it configures bash and vim. It also contains configurations for screen, tmux and rubygems. Be aware that the tmux configuration is untested as I stick to screen for availability reasons (same reason I stick to bash instead of zsh).
I recommend creating your own fork as you will probably want to change this to suit your preferences.
The install process is simple, clone into a directory (I use $HOME/src/rcfiles), then run the install script. Done
The install script tries to preserve the existing files. But you should definitely check the script before running it.
After installing the rcfiles, you need to reload your environment (just run exec bash
).
This will also take over your Git config file. But if you use Git for both work and personal stuff, then chances are that you require more than one configuration. At least to change your email address.
To deal with that, the gitconfig
in the repo uses the include option to load ~/.gitconfig.local
. Below, you can see what kind of options I keep in the local file.
# Example contents for ~/.gitconfig.local
[user]
name = Your Name
email = [email protected]
signingkey = FEFEFEFEF
[commit]
gpgsign = true
[github]
user = example
To manage options inside the local file, you can use the -f
command line option for git config
.
git config -f ~/.gitconfig.local user.name 'Your Name'
git config -f ~/.gitconfig.local user.email '[email protected]'
Because I tend to install this on every account, even temporary ones. So I don't what to depend on any external package. It has to work on Ubuntu, Debian, Gentoo, SLES, Mac OS, Cygwin. On current versions as well as old ones.
Because I tend to install this on every account. I want to keep it as simple to install as possible.
Well.. I've finally migrated to a plugin manager. The config now uses the built-in plugin support for VIM 8.0+
The repo now includes ALE, so now you can add the Puppet Language Server and have a modern code editor experience. See this Vox Pupuli article for more information.
git submodule update --remote --merge