From 6d6e42cba051c825cdd820f635584634d63c447f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 21 Feb 2012 23:10:10 +1300 Subject: Still tweaking. --- bash/bashrc | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'bash/bashrc') 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 -- cgit v1.2.3