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

if [[ $(get_key colored_ls) == true ]]; then \
	dbg_msg BashStyle-NG Setting: Colored ls On
	alias ls="ls -CF --color=auto --group-directories-first"
else
	dbg_msg BashStyle-NG Setting: Colors ls Off
	alias ls="ls -CF --color=no --group-directories-first"
fi

dbg_msg BashStyle-NG Setting: ll as ls -l --group-directories-first
alias ll="ls -l --group-directories-first"

dbg_msg BashStyle-NG Setting: la as ls -A --group-directories-first
alias la="ls -A --group-directories-first"

if [[ $(get_key alias1) != "" ]]; then \
	dbg_msg BashStyle-NG Setting: Alias $(get_key alias1)
	alias "$(get_key alias1)"
fi

if [[ $(get_key alias2) != "" ]]; then \
	dbg_msg BashStyle-NG Setting: Alias $(get_key alias2)
	alias "$(get_key alias2)"
fi

if [[ $(get_key alias3) != "" ]]; then \
	dbg_msg BashStyle-NG Setting: Alias $(get_key alias3)
	alias "$(get_key alias3)"
fi

if [[ $(get_key alias4) != "" ]]; then \
	dbg_msg BashStyle-NG Setting: Alias $(get_key alias4)
	alias "$(get_key alias4)"
fi

if [[ $(get_key alias5) != "" ]]; then \
	dbg_msg BashStyle-NG Setting: Alias $(get_key alias5)
	alias "$(get_key alias5)"
fi

if [[ $(get_key alias6) != "" ]]; then \
	dbg_msg BashStyle-NG Setting: Alias $(get_key alias6)
	alias "$(get_key alias6)"
fi

if [[ $(get_key alias7) != "" ]]; then \
	dbg_msg BashStyle-NG Setting: Alias $(get_key alias7)
	alias "$(get_key alias7)"
fi
