forked from jimlawton/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_options
More file actions
34 lines (23 loc) · 762 Bytes
/
bash_options
File metadata and controls
34 lines (23 loc) · 762 Bytes
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
# 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
# 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
export HISTFILESIZE=1000000
export HISTSIZE=1000000
# Ignore dupe commands and other ones you don't care about
export HISTIGNORE="&:[ ]*:exit:ls:pwd:[bf]g"
# Record timestamps
export HISTTIMEFORMAT='%F %T '