aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-28 23:28:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-28 23:28:53 +1200
commit183bbe0828911a55018668f76b26c29e52d42705 (patch)
tree6fd9e6689a97decdc5836e5973541233c1a9dc77
parentTrying without bash-completion for a bit (diff)
downloaddotfiles-183bbe0828911a55018668f76b26c29e52d42705.tar.gz
dotfiles-183bbe0828911a55018668f76b26c29e52d42705.zip
Move options into .bashrc
May be making use of some of these extra features in my completion scripts, so need to make sure they're loaded first
-rw-r--r--bash/bashrc38
-rw-r--r--bash/bashrc.d/options.bash39
2 files changed, 38 insertions, 39 deletions
diff --git a/bash/bashrc b/bash/bashrc
index ae303d51..2501696f 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -22,6 +22,44 @@ setterm -bfreq 0 2>/dev/null
# Turn off flow control and control character echo
stty -ixon -ctlecho 2>/dev/null
+# Autocorrect fudged paths in cd calls
+shopt -s cdspell 2>/dev/null
+
+# Update the hash table properly
+shopt -s checkhash 2>/dev/null
+
+# Warn me about stopped jobs when exiting
+shopt -s checkjobs 2>/dev/null
+
+# Update columns and rows if window size changes
+shopt -s checkwinsize 2>/dev/null
+
+# Put multi-line commands onto one line of history
+shopt -s cmdhist 2>/dev/null
+
+# Expand globbing and variables for directory completion
+shopt -s direxpand 2>/dev/null
+
+# Autocorrect fudged paths during completion
+shopt -s dirspell 2>/dev/null
+
+# Include dotfiles in pattern matching
+shopt -s dotglob 2>/dev/null
+
+# Enable advanced pattern matching
+shopt -s extglob 2>/dev/null
+
+# Enable double-starring paths
+shopt -s globstar 2>/dev/null
+
+# Append rather than overwrite Bash history
+shopt -s histappend 2>/dev/null
+
+# Don't warn me about new mail all the time
+shopt -u mailwarn 2>/dev/null
+
+# Ignore me if I try to complete an empty line
+shopt -s no_empty_cmd_completion 2>/dev/null
# Load any supplementary scripts
if [[ -d $HOME/.bashrc.d ]]; then
diff --git a/bash/bashrc.d/options.bash b/bash/bashrc.d/options.bash
deleted file mode 100644
index dc820d21..00000000
--- a/bash/bashrc.d/options.bash
+++ /dev/null
@@ -1,39 +0,0 @@
-# Don't warn me about new mail all the time
-shopt -u mailwarn &>/dev/null
-
-# Autocorrect fudged paths in cd calls
-shopt -s cdspell &>/dev/null
-
-# Update the hash table properly
-shopt -s checkhash &>/dev/null
-
-# Warn me about stopped jobs when exiting
-shopt -s checkjobs &>/dev/null
-
-# Update columns and rows if window size changes
-shopt -s checkwinsize &>/dev/null
-
-# Put multi-line commands onto one line of history
-shopt -s cmdhist &>/dev/null
-
-# Expand globbing and variables for directory completion
-shopt -s direxpand &>/dev/null
-
-# Autocorrect fudged paths during completion
-shopt -s dirspell &>/dev/null
-
-# Include dotfiles in pattern matching
-shopt -s dotglob &>/dev/null
-
-# Enable advanced pattern matching
-shopt -s extglob &>/dev/null
-
-# Enable double-starring paths
-shopt -s globstar &>/dev/null
-
-# Append rather than overwrite Bash history
-shopt -s histappend &>/dev/null
-
-# Ignore me if I try to complete an empty line
-shopt -s no_empty_cmd_completion &>/dev/null
-