Browse Source

[install, readme] add install script and explain usage

master
rypel 5 months ago
parent
commit
adb47e48c2
2 changed files with 20 additions and 1 deletions
  1. +14
    -1
      README.md
  2. +6
    -0
      install.sh

+ 14
- 1
README.md View File

@@ -1,3 +1,16 @@
# dotfiles
Configuration files used by various tools on Linux:

Configuration files used on Linux and assorted tools
- bash
- editorconfig
- git
- htop
- vim

## usage
Clone this repo, then run the `install.sh` script to copy the relevant files into the current user's `$HOME` directory.

The script will ask for each file before a potential overwrite. Answer with `y`, `n` or abort wih `ctrl+c`

git clone https://git.rypel.io/rypel/dotfiles.git
cd dotfiles/ && chmod +x install.sh && ./install.sh

+ 6
- 0
install.sh View File

@@ -0,0 +1,6 @@
#!/usr/bin/sh

FILES='.bashrc .config/ .editorconfig .gitconfig .vimrc'

# ask before overwriting, answer with 'y', 'n' or abort with 'ctrl+c'
cp -iR $FILES $HOME

Loading…
Cancel
Save