export PATH=/bin:/sbin:/usr/bin:/usr/sbin

if [ "$PS1" ]; then
	if [ "`id -u`" -eq 0 ]; then
		export PS1='[\u@\h:\w]# '
	else
		export PS1='[\u@\h:\w]$ '
	fi
fi

export PAGER='/bin/less '
export EDITOR='/bin/vi'

# Source configuration files from /etc/profile.d
for i in /etc/profile.d/*.sh ; do
	if [ -r "$i" ]; then
		. $i
	fi
	unset i
done

# for serial console
if [ -x /usr/bin/resize ] && termpath="`tty`"; then
	# Make sure we are on a serial console (i.e. the device used starts with /dev/tty),
	# otherwise we confuse e.g. the eclipse launcher which tries do use ssh
	case "$termpath" in
		/dev/tty*) resize >/dev/null
	esac
fi

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# disable journalctrl long line chop
#  remove -S option
export SYSTEMD_LESS=FRXMK
