From d5ab6698946ab9414fb0cfda110036cfc76152df Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Sun, 26 Feb 2017 00:06:32 -0500 Subject: [PATCH] Add Readme and interactivity check on bash --- README.md | 5 +++++ run/.bash_profile | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..707c4d7 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Dotfiles +---------- + + +## Getting Started diff --git a/run/.bash_profile b/run/.bash_profile index 8c4b4d2..7cf874f 100644 --- a/run/.bash_profile +++ b/run/.bash_profile @@ -1,3 +1,6 @@ +# If not running interactively, don't do anything! +[[ $- != *i* ]] && return + for DOTFILE in `find /home/ahosking/.dotfiles` do [ -f "$DOTFILE" ] && source "$DOTFILE"