36 lines
1006 B
Bash
Raw Normal View History

2015-06-15 15:02:48 -07:00
export HISTTIMEFORMAT='%F %T '
export PAGER='less -XFr'
export GITPAGER='less -XFr'
2011-09-05 20:08:58 +02:00
# Larger bash history (allow 32³ entries; default is 500)
export HISTSIZE=32768
2014-12-15 17:20:59 -08:00
export HISTFILESIZE=10000000
2011-09-05 20:19:31 +02:00
export HISTCONTROL=ignoredups
# Make some commands not show up in history
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
# Prefer US English and use UTF-8
export LANG="en_US"
export LC_ALL="en_US.UTF-8"
# Highlight section titles in manual pages
export LESS_TERMCAP_md="$ORANGE"
# Dont clear the screen after quitting a manual page
2014-04-08 05:50:21 -07:00
export MANPAGER="less -X"
2014-10-28 02:48:51 -07:00
dircolors_file="$HOME/.dircolors"
2015-01-03 14:10:17 -08:00
[ ! -z "$SHELL" ] && test -r $dircolors_files && eval "$(dircolors $dircolors_file)" && eval $(dircolors)
2016-02-22 11:12:40 -08:00
2016-03-15 16:26:32 -07:00
export GO15VENDOREXPERIMENT=1
if [[ $TERM == "dumb" ]]; then
export PS1='$ '
elif [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM=gnome-256color
elif infocmp xterm-256color >/dev/null 2>&1; then
export TERM=xterm-256color
fi