Files
dotfiles/README.rst

60 lines
2.1 KiB
ReStructuredText
Raw Normal View History

2013-09-16 22:33:10 +02:00
dotfiles
========
My configuration files.
Installation
------------
1. ``git clone git://github.com:whatevsz/dotfiles ~/dotfiles``
2013-09-18 20:12:37 +02:00
2. ``bash ~/dotfiles/scripts/setup.bash``
2013-09-16 22:33:10 +02:00
2013-09-27 05:23:43 +02:00
``setup.bash`` will back up all configuration files that would otherwise
2013-09-16 22:33:10 +02:00
be overridden and then symlink the content of all folders specified in $symlink_folders
into $HOME or the desired destination given in MAPPING, if present.
If you want to use a different directory instead of ``~/dotfiles``, just alter the first
2013-09-20 15:32:47 +02:00
line and replace ``~/dotfiles`` with the desired destination and change the line
2013-09-18 20:12:37 +02:00
``config_dir="$HOME/dotfiles/"`` in ``scripts/setup.bash`` accordingly. You can
2013-09-20 15:32:47 +02:00
also choose a different folder for the backup of old files (default being ``~/.dotfiles.bak``)
2013-09-27 05:23:43 +02:00
by altering ``backup_dir`` in ``setup.bash`` to your needs.
2013-09-16 22:33:10 +02:00
Structure
---------
2013-09-18 20:12:37 +02:00
- ``scripts/`` - Scripts, e.g. for setting up the configuration.
2013-09-21 23:21:22 +02:00
- ``setup/`` - Setup information, e.g. a list of packages.
2013-09-16 22:33:10 +02:00
- ``MAPPING`` - File that contains mapping directives.
2013-09-27 05:23:43 +02:00
- ``TODO`` - Some stuff I am to lazy to do right now ;).
- ``README.rst`` - The stuff you are reading right now.
2013-09-16 22:33:10 +02:00
- All other folders - These are the folders that contain the configuration files.
Mapping
-------
If you have configuration folder that is not located directly in $HOME,
but some subfolder (~/.config being a popular example), you
can tell the setup script to place the contents of that folder into an
arbitrary subfolder of $HOME. To do so, place an entry into ``MAPPING``. It has
the following format::
<name of the configuration folder>::<root for that folder relative to $HOME>
Example::
terminator::.config/
2013-09-20 15:32:47 +02:00
This will symlink the contents of the folder ``dotfiles/terminator`` into ``~/.config/``
2013-09-16 22:33:10 +02:00
When you provide multiple lines for the same folder, the first one that matches
will be used.
2013-09-27 05:23:43 +02:00
Required software
-----------------
- ``git`` to clone the repository (you can alternatively download a tarball at
http://github.com/whatevsz/dotfiles/archive/master.zip)
- ``zsh`` uses the configuration framework "oh-my-zsh" available at
http://github.com/robbyrussell/oh-my-zsh