Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bash history options, the never ending story.

  • Loading branch information...
commit 0b79fb711f790427cfac4c9acb920aa2760fed07 1 parent b2a3756
@rkk authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 Bash/dot.bash_profile
View
12 Bash/dot.bash_profile
@@ -22,12 +22,10 @@ export PATH
## HISTORY
##
-export HISTSIZE=100000
-## Don't put duplicate lines in the history. See bash(1) for more options
-## Don't overwrite GNU Midnight Commander's setting of `ignorespace'.
-export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
-# ... or force ignoredups and ignorespace
-export HISTCONTROL=ignoreboth
+export HISTSIZE=32768
+export HISTFILESIZE=$HISTSIZE
+export HISTCONTROL=ignoredups
+export HISTIGNORE="ls:ls *:cd:cd -:pwd;exit:date:* --help"
## Append to the history file, don't overwrite it
shopt -s histappend
@@ -44,6 +42,8 @@ shopt -s checkwinsize
PS1="\[\e[0;30;47m\]\u@\h\[\e[0m\]:\W$ "
export PS1
+# Make the "sudo" prompt more useful, without requiring access to "visudo".
+export SUDO_PROMPT='[sudo] password for %u on %h: ';
##
## COLORS
Please sign in to comment.
Something went wrong with that request. Please try again.