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.
 

15 lines
343 B

#!/usr/bin/sh
set -e
SOURCEABLE='.bashrc'
FILES='$SOURCEABLE .editorconfig .gitconfig .vimrc'
HTOP_DIR='.config/htop'
HTOP_RC='htoprc'
# ask before overwriting, answer with 'y', 'n' or abort with 'ctrl+c'
cp -i $FILES $HOME
mkdir -p $HOME/$HTOP_DIR
cp -i $HTOP_DIR/$HTOP_RC $HOME/$HTOP_DIR/$HTOP_RC
# source it to shell
. $HOME/$SOURCEABLE