summaryrefslogtreecommitdiffstats
path: root/bashrc/common/shopt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc/common/shopt.sh')
-rw-r--r--bashrc/common/shopt.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/bashrc/common/shopt.sh b/bashrc/common/shopt.sh
new file mode 100644
index 0000000..07a796a
--- /dev/null
+++ b/bashrc/common/shopt.sh
@@ -0,0 +1,23 @@
+# bash configuration
+
+# basic search path for chdir
+export CDPATH=".:~"
+
+# keep size of history small ...
+export HISTCONTROL="ignoreboth:erasedups"
+
+# ... but keep a lot of history
+export HISTFILESIZE=5000
+export HISTSIZE=5000
+
+# save timestamp in history
+export HISTTIMEFORMAT="%+ "
+
+# check window size after each command
+shopt -s checkwinsize
+
+# save multi-line command as one line
+shopt -s cmdhist
+
+# append history
+shopt -s histappend