diff --git a/README.md b/README.md new file mode 100644 index 0000000..fe207b8 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Contents + +* [[blogs]]: content related to blogs I've written +* [[presentations]]: presentation tools and materials +* [[terminal]]: all tools and shortcuts to setting up my preferred terminal + +# License +[GPL-2.0](LICENSE) diff --git a/.bash_profile.chuck b/terminal/.bash_profile.chuck similarity index 100% rename from .bash_profile.chuck rename to terminal/.bash_profile.chuck diff --git a/.pythonrc b/terminal/.pythonrc similarity index 100% rename from .pythonrc rename to terminal/.pythonrc diff --git a/terminal/README.md b/terminal/README.md new file mode 100644 index 0000000..eea4374 --- /dev/null +++ b/terminal/README.md @@ -0,0 +1,7 @@ +# What is this? + +# Installation + +``` +curl https://raw.githubusercontent.com/chuckwired/blogs/develop/terminal/install.sh | bash +``` diff --git a/terminal/install.sh b/terminal/install.sh new file mode 100755 index 0000000..5c7c99f --- /dev/null +++ b/terminal/install.sh @@ -0,0 +1,18 @@ +# clone repo +cd ~ +git clone git@github.com:chuckwired/blogs --depth 1 + +# install resources +cd blogs/terminal +cp .pythonrc ~/ + + + +function install_resource { + FILENAME=$1 + DEFAULT_LOC=$2 + + cp ${DEFAULT_LOC}/${FILENAME} ${DEFAULT_LOC}/${FILENAME}.bac + rm ${DEFAULT_LOC}/${FILENAME} + cp ~/blogs/terminal/${FILENAME} ${DEFAULT_LOC}/${FILENAME} +}