summaryrefslogtreecommitdiffstats
path: root/.bashrc
blob: 8c086b40062c1770c1340c9f9b6a20a92b243e04 (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
33
34
35
36
37
38
[ -z "${PS1}" ] && return

HISTSIZE=1000
HISTFILESIZE=1000
HISTCONTROL=ignoreboth
shopt -s histappend

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

PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

# Set terminal window title.
case "${TERM}" in xterm*|rxvt*)
	PS1="\[\e]0;\u@\h:\w\a\]${PS1}"
	;;
esac

export LC_ALL='en_US.UTF-8'
export LC_TIME='en_DK.UTF-8'
export EDITOR='vim'

if [ -x /usr/bin/dircolors ]; then
	if [ -r ~/.dircolors ]; then
		eval "$(dircolors -b ~/.dircolors)"
	else
		eval "$(dircolors -b)"
	fi
	alias ls='ls --color=auto'
	alias grep='grep --color=auto'
fi

if [ -f ~/.bash_aliases ]; then
	. ~/.bash_aliases
fi

if [ -f /etc/bash_completion ]; then
	. /etc/bash_completion
fi