bashrc 803 Bytes
Newer Older
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
# .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 ../../../../../../../..'

# 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
PS1="\n${c_reset}${c_user}\u${c_reset}@${c_host}\h${c_reset}:${c_path}\w${c_reset}\n${b_prompt}"