#!/bin/bash
#########################################################
# 							#
# This is BashStyle-NG 6.7				#
#							#
# Licensed under GNU LESSER GENERAL PUBLIC LICENSE v3	#
#							#
# Copyright 2007 - 2008 Christopher Bratusek		#
#							#
#########################################################

export enabup=$(gconftool-2 --get /apps/bashstyle/show_uptime)

export enabsize=$(gconftool-2 --get /apps/bashstyle/show_size_of_files)

export enablf=$(gconftool-2 --get /apps/bashstyle/show_files_amount)

export enabtty=$(gconftool-2 --get /apps/bashstyle/show_tty)

export sepa=$(gconftool-2 --get /apps/bashstyle/char_separator)

if [[ $enabcol == true ]]; then \

	PS1="\n$usercolor\u$sepacolor $sepa$fontcolor @$hostcolor \h$sepacolor $sepa $datecolor\d$sepacolor $sepa $timecolor\t$sepacolor $sepa $wdircolor\$(truncpwd)"

	if [[ $enablf == true ]]; then
		PS1+=" files: \$(fdnl)"
	fi

	if [[ $enablf == true && $enabsize == true ]]; then
		PS1+=" /"
	fi

	if [[ $enabsize == true ]]; then
		PS1+=" size: \$(showsize)"
	fi

	if [[ $enabtty == true ]]; then
		PS1+=" $sepacolor$sepa$hostcolor tty: \$(showtty)"
	fi

	if [[ $enabup == true ]]; then
		PS1+=" $sepacolor$sepa$upcolor uptime: \$(showuptime)"
	fi

	PS1+="$sepacolor $sepa\n$usercolor$ $fontcolor-> "

elif [[ $enabcol == false ]]; then

	PS1="\n\u $sepa @ \h $sepa \d $sepa \t $sepa \$(truncpwd)"

	if [[ $enablf == true ]]; then
		PS1+=" files: \$(fdnl)"
	fi

	if [[ $enablf == true && $enabsize == true ]]; then
		PS1+=" /"
	fi

	if [[ $enabsize == true ]]; then
		PS1+=" size: \$(showsize)"
	fi

	if [[ $enabtty == true ]]; then
		PS1+=" $sepa tty: \$(showtty)"
	fi

	if [[ $enabup == true ]]; then
		PS1+=" $sepa uptime: \$(showuptime)"
	fi

	PS1+=" $sepa\n$ -> "

fi

export PS1
