aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-02-21 23:10:10 +1300
committerTom Ryder <tom@sanctum.geek.nz>2012-02-21 23:10:10 +1300
commit6d6e42cba051c825cdd820f635584634d63c447f (patch)
tree531366ab25a25bc731f2b4cd02cc123d33bcb591
parentStill tweaking bashrc. (diff)
downloaddotfiles-6d6e42cba051c825cdd820f635584634d63c447f.tar.gz
dotfiles-6d6e42cba051c825cdd820f635584634d63c447f.zip
Still tweaking.
-rw-r--r--bash/bashrc21
1 files changed, 15 insertions, 6 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 59e34eb3..c81d081e 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -9,10 +9,16 @@ HISTSIZE=1000000
HISTCONTROL=ignoreboth
# Keep the times of the commands in history.
-HISTTIMEFORMAT="%F %T "
+HISTTIMEFORMAT='%F %T '
+
+# Ignore certain commands for the history.
+HISTIGNORE='ls:ls -l:ls -la:fg:bg:jobs:history'
# Add all commands to the history immediately.
-PROMPT_COMMAND="history -a; history -n"
+PROMPT_COMMAND='history -a; history -n'
+
+# Don't check for mail all the time, it's irritating.
+unset MAILCHECK
# Autocorrect fudged paths in cd calls.
shopt -s cdspell
@@ -26,8 +32,11 @@ shopt -s cmdhist
# Append rather than overwrite Bash history.
shopt -s histappend
+# Never beep at me.
+setterm -bfreq 0
+
# Simple prompt.
-PS1="\u@\h:\w\$ "
+PS1='\u@\h:\w\$ '
# Use colors for ls and grep, if available.
if [ -x /usr/bin/dircolors ]; then
@@ -49,9 +58,9 @@ fi
# Turn off annoying and useless flow control keys.
stty -ixon
-# Use vim as my text editor, if available.
-hash vim &>/dev/null
+# Use vi as my text editor, if available.
+hash vi &>/dev/null
if [ $? -eq 0 ]; then
- export EDITOR=vim
+ export EDITOR=vi
fi