From d2c5f3bde6da0ca485b7a3f377741585403ff8a1 Mon Sep 17 00:00:00 2001 From: Chuck Rice Date: Sat, 29 Apr 2017 21:55:48 +0100 Subject: [PATCH] WIP setup terminal utilities --- README.md | 8 ++++++++ .../.bash_profile.chuck | 0 .pythonrc => terminal/.pythonrc | 0 terminal/README.md | 7 +++++++ terminal/install.sh | 18 ++++++++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 README.md rename .bash_profile.chuck => terminal/.bash_profile.chuck (100%) rename .pythonrc => terminal/.pythonrc (100%) create mode 100644 terminal/README.md create mode 100755 terminal/install.sh 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} +}