summary refs log tree commit diff
path: root/home/.bashrc
blob: 61c9d1914436b9f6f898c98d4ad3da902d9c957d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
. ~/.shrc

alias ls='ls -p --color=auto'
alias grep='grep --color=auto'

_PS0=${PS0/$'\n'/}
unset PS0
RPS1=${RPS1/'\?'/'${?/#0/}'}

rprompt() {
	printf '%*s\r' $((COLUMNS - 1)) "${RPS1@P}"
}
PS1='\n\[${_PS0@P}$(rprompt)\]'"${PS1}"