Skip to content

Commit f7f6230

Browse files
committed
.exports: Set HISTCONTROL
Omit duplicates and commands that begin with a space from history.
1 parent 216a633 commit f7f6230

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

.exports

+15-16
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
# Make vim the default editor
2-
export EDITOR="vim";
1+
# Make vim the default editor.
2+
export EDITOR='vim';
33

4-
# Larger bash history (allow 32³ entries; default is 500)
5-
export HISTSIZE=32768;
6-
export HISTFILESIZE=$HISTSIZE;
7-
export HISTCONTROL=ignoredups;
8-
# Make some commands not show up in history
9-
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help";
4+
# Increase Bash history size. Allow 32³ entries; the default is 500.
5+
export HISTSIZE='32768';
6+
export HISTFILESIZE="${HISTSIZE}";
7+
# Omit duplicates and commands that begin with a space from history.
8+
export HISTCONTROL='ignoreboth';
109

11-
# Prefer US English and use UTF-8
12-
export LANG="en_US.UTF-8";
13-
export LC_ALL="en_US.UTF-8";
10+
# Prefer US English and use UTF-8.
11+
export LANG='en_US.UTF-8';
12+
export LC_ALL='en_US.UTF-8';
1413

15-
# Highlight section titles in manual pages
14+
# Highlight section titles in manual pages.
1615
export LESS_TERMCAP_md="${yellow}";
1716

18-
# Don’t clear the screen after quitting a manual page
19-
export MANPAGER="less -X";
17+
# Don’t clear the screen after quitting a manual page.
18+
export MANPAGER='less -X';
2019

21-
# Always enable colored `grep` output
22-
export GREP_OPTIONS="--color=auto";
20+
# Always enable colored `grep` output.
21+
export GREP_OPTIONS='--color=auto';

0 commit comments

Comments
 (0)