bash_profiles and vimrc managment for assorted linux, mac, and windows machines.
- Move to your home directory
cd ~ - Get a copy of this repository
git clone https://github.com/lostphilosopher/dot_files.git
This section applies to the code found under dot_files/bash/.
- Copy the dot_files bash_profile file to your home directory
cp ~/dot_files/bash/bash_profile ~/.bash_profile - Create a .manifest file inside dot_files/bash/
touch ~/dot_files/bash/.manifest - Open the .manifest file and indicate which modules you would like to load (look here to see available modules) including a module is as easy as
[ -r ~/dot_files/bash/lib/git ] && source ~/dot_files/bash/lib/git - Create a .private file inside dot_files/bash/ to hold any secure data your scripts might need
touch ~/dot_files/bash/.manifest - Save your .manifest file and source your ~/.bash_profile
source ~/.bash_profile - In your terminal you should see something like:
Sourcing .manifest ...
Sourcing git preferences...
Sourcing grep preferences...
Sourcing Heroku preferences...
Sourcing ruby preferences...
Sourcing Vagrant preferences...
Managing a new tool:
If you find a new tool / project / consideration you'd like to manage with this system you can add an appropriate file to the lib/ directory. The convention is to begin each file with:
# NAME_OF_THING_THIS_MODULE_MANAGES
domain=NAME_OF_THING_THIS_MODULE_MANAGES
format_sourcing_message(example)
Then you'll need to add this file to your .manifest and source your ~/.bash_profile again.
Using the "self managaged" tools:
The repo has some meta tooling in it that lets it manage itself (After the initial Set Up has been completed.) The code for this can be found here. This provides 3 meta utilities:
bashedit/editbash: Open dot_files/bash/bash_profile in vim for fast editting.rebash: Copy dot_files/bash/bash_profile to ~/.bash_profile and source ~/.bash_profile.commitdots: Update your local master branch and commit your local changes to origin master.
This section applies to the code found under dot_files/vim/.
- Copy the vimrc file to the appropriate directory
cp ~/dot_files/vim/vimrc ~/.vimrc - Follow the instructions in vimrc
If you are using the bash configuation above in conjunction with this vim configuration the following meta utilities are available here and here:
vimedit/editvim: Open the dot_files vimrc file for easy editting.revim: Copy ~/dot_files/vim/vimrc to ~/.vimrc.commitdots: Update your local master branch and commit your local changes to origin master.
- I recommend https://github.com/stephenway/monokai.terminal for the terminal profile.