This is a collection of configuration file templates. The files are located in a directory structure that allows the use of configuration management tools (e.g. Stow).
$ tree -na ./src
./src
├── X
│ ├── .Xresources
│ ├── .Xresources.d
│ │ └── xterm
│ └── .xsession
├── bash
│ ├── .bashrc
│ └── .git-prompt.sh
├── bspwm
│ └── .config
│ └── bspwm
│ └── bspwmrc
├── clog
│ └── .clogrc
├── ctpv
│ └── .config
│ └── ctpv
│ └── config
├── lf
│ └── .config
│ └── lf
│ ├── inc
│ │ ├── archive-atool.lfrc
│ │ ├── archive-tar_xz.lfrc
│ │ ├── copy_path_to_clipboard.lfrc
│ │ ├── copy_to.lfrc
│ │ ├── delete.lfrc
│ │ ├── edit_config.lfrc
│ │ ├── maps-root.lfrc
│ │ ├── maps-user-xdg.lfrc
│ │ ├── maps-user.lfrc
│ │ ├── preview_with_ctpv.lfrc
│ │ ├── share_in_0x0_st.lfrc
│ │ ├── symlink.lfrc
│ │ ├── unpack.lfrc
│ │ └── xdg-open.lfrc
│ ├── lfrc
│ └── lfrc.local
├── nftables
│ └── etc
│ └── nftables.conf
├── readline
│ └── .inputrc
├── sxhkd
│ └── .config
│ └── sxhkd
│ └── sxhkdrc
├── tmux
│ └── .tmux.conf
└── vim
├── .config
│ └── vim
│ ├── colors
│ │ └── tmblack.vim
│ └── vimrc.local
└── .vimrc
26 directories, 31 filesThe files in src can be used directly for the initial configuration of the programs.
make is only for sanitize files (removes empty lines and comments).
$ mkdir ~/src \
&& cd ~/src \
&& git clone https://gitlab.com/tskr/dotfiles \
&& cd dotfiles$ ls -1A
.git
.gitignore
Makefile
README.md
config.def.mk
srcLinux:
$ make installBSD:
$ gmake install$ ls -1A
.dotfiles
.git
.gitignore
Makefile
README.md
build
config.def.mk
config.mk
srcThe default target directory is set in the PREFIX variable (see config.def.mk).
To change it set PREFIX, e.g.:
$ make install PREFIX=~/.dotfilesor create config.mk, e.g.:
$ echo 'PREFIX = ~/.dotfiles' >config.mk$ install -m 644 build/bash/.bashrc ~/- Readme: https://godoc.org/github.com/gokcehan/lf
- Documentation: https://godoc.org/github.com/gokcehan/lf
- Releases: https://github.com/gokcehan/lf/releases/latest
Example:
$ wget https://github.com/gokcehan/lf/releases/download/r25/lf-linux-amd64.tar.gz
tar zxf lf-linux-amd64.tar.gz \
&& rm lf-linux-amd64.tar.gz \
&& mkdir -p ~/.local/bin \
&& mv ./lf ~/.local/bin/