dotfiles/dotfiles/lib/shellenv/exports.sh

36 lines
1006 B
Bash
Raw Normal View History

2015-06-15 16:02:48 -06:00
export HISTTIMEFORMAT='%F %T '
export PAGER='less -XFr'
export GITPAGER='less -XFr'
2011-09-05 12:08:58 -06:00
# Larger bash history (allow 32³ entries; default is 500)
export HISTSIZE=32768
2014-12-15 18:20:59 -07:00
export HISTFILESIZE=10000000
2011-09-05 12:19:31 -06: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 06:50:21 -06:00
export MANPAGER="less -X"
2014-10-28 03:48:51 -06:00
dircolors_file="$HOME/.dircolors"
2015-01-03 15:10:17 -07:00
[ ! -z "$SHELL" ] && test -r $dircolors_files && eval "$(dircolors $dircolors_file)" && eval $(dircolors)
2016-02-22 12:12:40 -07:00
2016-03-15 17:26:32 -06: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