summaryrefslogtreecommitdiff
path: root/etc/functions/invert-colours
blob: cf2a9099f88804d8ba63f7b61abdf83b663bac85 (plain)
1
2
3
4
5
if [[ ${PS1} == '%F{black}'* ]] {
	PS1=${${${PS1//\%K/%F}//white/default}#\%K\{black\}}
} else {
	PS1='%F{black}'${${PS1//\%F/%K}//default/white}
}