summaryrefslogtreecommitdiff
path: root/bash/bashrc
blob: a4506c2073261a9e84558e8cf5dac680e37691e0 (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
29
30
31
32
# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

# history setup

## append to the history file, don't overwrite it
shopt -s histappend

## no dups+skip space-prefixed commands
HISTCONTROL=ignoreboth
HISTFILE=~/.local/var/bash/history
HISTSIZE=65536

# activate lesspipe
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# ls colors
if [ -x /usr/bin/dircolors ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
fi

# disable flow control
# XXX should this be here?
stty -ixon

# define the prompt
. ~/.config/bash/prompt
PS1=$(__prompt_func)