summaryrefslogtreecommitdiffstats
path: root/bashrc/common/shopt.sh
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2008-10-29 03:50:18 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2008-10-29 03:50:18 +0100
commit0cfdb493f045e7c533328617427a7416783c28b5 (patch)
treecc9a1a43343cef6550357eab1e25a1923dae627b /bashrc/common/shopt.sh
parent4e4fb8d5d790d2cc6eabab95aaea4b81225ca164 (diff)
downloaddotfiles-0cfdb493f045e7c533328617427a7416783c28b5.tar.gz
dotfiles-0cfdb493f045e7c533328617427a7416783c28b5.tar.xz
dotfiles-0cfdb493f045e7c533328617427a7416783c28b5.zip
added bashrc configdir
added git config
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