aboutsummaryrefslogtreecommitdiff
path: root/config/shell/bashrc
blob: 31cb72a0408397aae74c6c69d7c354bf7b79e0b7 (plain)
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
export HISTIGNORE="[]*:&:bg:fg:ls -l:ls -al:ls -la"
export HISTTIMEFORMAT="%Y-%m-%dT%H:%M:%S "
export HISTCONTROL=ignoreboth:erasedups
export HISTFILESIZE=200000
export HISTSIZE=200000
shopt -s histappend

if [[ "${TERM}" == "dumb" ]]; then
    alias m='cat'
    alias less='cat'
    alias more='cat'
    export PAGER=cat
    export TERM=xterm-color
    export PS1="% "
else
    export PAGER='less'
    export PS1="(\t)(\u@\h)(\W)% "
fi

if [[ -n "${INSIDE_EMACS}" ]]; then
    unset EDITOR
    unset VISUAL
else
    export EDITOR='emacsclient'
    export VISUAL='emacsclient'
fi

eval "$(direnv hook bash)"