dot.bashrc 1022 Bytes
Newer Older
Jørn Åne's avatar
Jørn Åne committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# .bashrc

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

alias ll='ls -ahl'

alias ..=' cd ..'
alias ...=' cd ../..'
alias ....=' cd ../../..'
alias .....=' cd ../../../..'
alias ......=' cd ../../../../..'
alias .......=' cd ../../../../../..'
alias ........=' cd ../../../../../../..'
alias .........=' cd ../../../../../../../..'

Jørn Åne's avatar
Jørn Åne committed
19 20 21
export LSCOLORS=Exfxcxdxbxegedabagacad
export CLICOLOR=1

Jørn Åne's avatar
Jørn Åne committed
22 23 24 25
export PAGER=less
export EDITOR=vim
export VISUAL=vim

26 27
export LC_ALL=en_GB.UTF-8
export CTYPE=UTF-8
Jørn Åne's avatar
Jørn Åne committed
28

Jørn Åne's avatar
Jørn Åne committed
29
export GOPATH=~/go/
Jørn Åne's avatar
Jørn Åne committed
30
export PATH=$PATH:~/go/bin
Jørn Åne's avatar
Jørn Åne committed
31

Jørn Åne's avatar
Jørn Åne committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
# 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
51
PS1="\n${c_reset}${c_user}\u${c_reset}@${c_host}$(hostname -f)${c_reset}:${c_path}\w${c_reset}\n${b_prompt}"