Configuration files used by various tools on Linux.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
343B

  1. #!/usr/bin/sh
  2. set -e
  3. SOURCEABLE='.bashrc'
  4. FILES='$SOURCEABLE .editorconfig .gitconfig .vimrc'
  5. HTOP_DIR='.config/htop'
  6. HTOP_RC='htoprc'
  7. # ask before overwriting, answer with 'y', 'n' or abort with 'ctrl+c'
  8. cp -i $FILES $HOME
  9. mkdir -p $HOME/$HTOP_DIR
  10. cp -i $HTOP_DIR/$HTOP_RC $HOME/$HTOP_DIR/$HTOP_RC
  11. # source it to shell
  12. . $HOME/$SOURCEABLE