From 77729fc08ba67210e7ef5300d89b1c5baf89f24b Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 14 May 2016 11:43:54 +0300
Subject: [PATCH] - Added provision to (POSIX) shells other than Bash.

---
 .bashrc  | 7 +++++--
 .profile | 1 +
 2 files changed, 6 insertions(+), 2 deletions(-)
 create mode 100644 .profile

diff --git a/.bashrc b/.bashrc
index a08f609..6354e41 100644
--- a/.bashrc
+++ b/.bashrc
@@ -6,8 +6,11 @@ export HISTCONTROL=ignoreboth:erasedups
 export HISTSIZE=100000
 export HISTFILESIZE=100000
 export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
-shopt -s histappend
-shopt -s checkwinsize
+if [ -n "$BASH" ]
+then
+    shopt -s histappend
+    shopt -s checkwinsize
+fi
 
 # make less more friendly for non-text input files, see lesspipe(1)
 [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
diff --git a/.profile b/.profile
new file mode 100644
index 0000000..e5e2087
--- /dev/null
+++ b/.profile
@@ -0,0 +1 @@
+export ENV="$HOME/.bashrc"
-- 
GitLab