dot.bashrc 859 Bytes
Newer Older
Jørn Åne's avatar
Jørn Åne committed
1 2 3 4 5 6 7
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

8
export LSCOLORS=ExgxfxdaCxDaDahbadacec
Jørn Åne's avatar
Jørn Åne committed
9
export LS_COLORS='di=1;34:ln=36:so=35:pi=33;40:ex=1;32:bd=1;33;40:cd=1;33;40:su=37;41:sg=30;43:tw=30;42:ow=34;42'
Jørn Åne's avatar
Jørn Åne committed
10 11
export CLICOLOR=1

Jørn Åne's avatar
Jørn Åne committed
12 13 14 15
export PAGER=less
export EDITOR=vim
export VISUAL=vim

16 17
export LC_ALL=en_GB.UTF-8
export CTYPE=UTF-8
Jørn Åne's avatar
Jørn Åne committed
18

Jørn Åne's avatar
Jørn Åne committed
19
export GOPATH=~/go/
Jørn Åne's avatar
Jørn Åne committed
20
export PATH=$PATH:~/go/bin
Jørn Åne's avatar
Jørn Åne committed
21

Jørn Åne's avatar
Jørn Åne committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
# Disable systemctl's auto-paging feature:
export SYSTEMD_PAGER=

c_reset='\[\e[0m\]'
c_user='\[\e[0;1m\]'
c_host='\[\e[0m\]'
c_upath='\[\e[0;44;37;1m\]'
c_rpath='\[\e[0;41;37;1m\]'
c_root='\[\e[0;1;31m\]'
if [ "$PS1" ]; then
	if [ "$UID" == "0" ]
	then
		c_path="${c_rpath}"
		b_prompt='# '
	else
		c_path="${c_upath}"
		b_prompt='$ '
	fi
fi
Jørn Åne's avatar
Jørn Åne committed
41
PS1="\n${c_reset}${c_user}\u${c_reset}@${c_host}$(hostname -f)${c_reset}:${c_path}\w${c_reset}\n${b_prompt}"