https://github.com/randomir/dotfiles-archive
my dotfiles
https://github.com/randomir/dotfiles-archive
Last synced: 2 months ago
JSON representation
my dotfiles
- Host: GitHub
- URL: https://github.com/randomir/dotfiles-archive
- Owner: randomir
- Created: 2017-03-15T22:56:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T15:43:06.000Z (about 9 years ago)
- Last Synced: 2025-01-28T01:48:24.510Z (over 1 year ago)
- Language: Shell
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
.. image:: https://img.shields.io/badge/platform-GNU/Linux,%20BSD,%20macOS/Darwin-red.svg
:target: https://pypi.python.org/pypi/envie
.. image:: https://img.shields.io/badge/shell-sh,bash-blue.svg
:target: https://pypi.python.org/pypi/envie
Minimally acceptable dotfiles
-----------------------------
Features:
- colored bash, colored less, colored vim, sensible pager
- 4 spaces, tab (de-)indent in vim, (un-)comment shortcuts
- ctrl+del/backspace to kill word in readline, case-insensitive completion
- metric units, utf-8 locale
- python history, tab completion
- few git aliases, meld merge, vim edit, color diff
Setup
-----
Clone this repo from GitHub (or, fork it first) and run ``setup.sh`` to symlink/copy dotfiles.
::
git clone https://github.com/randomir/dotfiles.git ~/.config/dotfiles
~/.config/dotfiles/setup.sh
Setup script usage::
setup.sh [--no-backup] [--copy|--symlink] [--srcdir=DIR] [--destdir=DIR] [--help]
Copy (or symlink) dotfiles from a specified source directory (defaults
to the script directory), to a specified destination directory (defaults
to user's $HOME).
Before setting dot files in place, backup all user files that would be
overwritten (by default; optionally, backup can be turned off). The
backup is in ``/backup/``.
The setup summarizes selected options and asks for confirmation before starting.
Personalize / private settings
------------------------------
To add private settings, I find convenient to keep "thin" local versions of personalized files and base them on public dotfiles.
This works well for scripts like ``.bashrc`` and ``.vimrc``, for example::
# load public bashrc base
source ~/.config/dotfiles/src/.bashrc
# add private stuff
SECRET_TOKEN=XXX