forked from matthewmccullough/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbash_options
45 lines (31 loc) · 1.11 KB
/
bash_options
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Shell options.
# Include dot (.) files in the results of expansion.
#shopt -s dotglob
# Case-insensitive matching for filename expansion.
shopt -s nocaseglob
# Enable extended pattern matching.
shopt -s extglob
# When running two bash windows, allow both to write to the history, not one
# stomping the other.
shopt -s histappend
# Keep multiline commands as one command in history.
shopt -s cmdhist
#set nobeep
# Don't put duplicate lines in the history
export HISTCONTROL=ignoredups
# Ignore successive duplicate entries.
export HISTCONTROL=ignoreboth
# Store a lot of history entries in a file for grep-age
shopt -s histappend
export HISTFILE=~/long_history
#if [ ! -z "${ITERM_SESSION_ID}" ]; then
# export HISTFILE=~/long-history-${ITERM_SESSION_ID}
#fi
export HISTFILESIZE=100000
# No reason not to save a bunch in history
# Takes up several more MBs of RAM now, oOOOooh
export HISTSIZE=20000
# Ignore dupe commands and other ones you don't care about
export HISTIGNORE="&:[ ]*:exit:ls:pwd:[bf]g"
# Old way to save history across multiple sessions.
#export PROMPT_COMMAND="history -a; history -n; $PROMPT_COMMAND"