#aliases and functions for freebsd

#don't store repeated duplicate commands in bash_history
export HISTCONTROL=ignoreboth:erasedups

#basic shell setup to mimic ubuntu
export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "
LSCOLORS='dxfxcxdxbxegedabagacad'; export LSCOLORS
export PAGER=less
export EDITOR=vim
alias grepc="grep -nr --color=always"

source "${DOTFILES_DIR}aliases_shared.bash"

alias reload="source ~/.bash_profile"

#built ins

alias pkg="sudo pkg"

#list rcvars to use for /etc/rc.conf
alias rcvars="grepc rcvar /usr/local/etc/rc.d/*"

#directories
alias localetc="cddirls /usr/local/etc"

#nginx
alias nginx="sudo service nginx"

#add site configuration file in 
#sites-available to sites enabled
#first argument should be name of site configuration file
#in sites available
function nginx_enable_site() {
	if [[ "$#" -ne 1 ]] ; then
    	>&2 echo "usage: ${FUNCNAME[0]} <site-configuration-filename>"
    	return 1;
	fi

	sudo ln -s "/usr/local/etc/nginx/sites-available/$1" "/usr/local/etc/nginx/sites-enabled/$1"
}



#aliases and functions for freebsd

#don't store repeated duplicate commands in bash_history
export HISTCONTROL=ignoreboth:erasedups

#basic shell setup to mimic ubuntu
export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "
LSCOLORS=d; export LSCOLORS
export PAGER=less
export EDITOR=vim
alias grepc="grep -nr --color=always"

source "${DOTFILES_DIR}aliases_shared.bash"

alias reload="source ~/.bash_profile"

#built ins

alias pkg="sudo pkg"

#list rcvars to use for /etc/rc.conf
alias rcvars="grepc rcvar /usr/local/etc/rc.d/*"

#directories
alias localetc="cddirls /usr/local/etc"

#nginx
alias nginx="sudo service nginx"

#add site configuration file in 
#sites-available to sites enabled
#first argument should be name of site configuration file
#in sites available
function nginx_enable_site() {
	if [[ "$#" -ne 1 ]] ; then
    	>&2 echo "usage: ${FUNCNAME[0]} <site-configuration-filename>"
    	return 1;
	fi

	sudo ln -s "/usr/local/etc/nginx/sites-available/$1" "/usr/local/etc/nginx/sites-enabled/$1"
}



--- 
+++ 
@@ -5,7 +5,7 @@
 
 #basic shell setup to mimic ubuntu
 export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "
-LSCOLORS='dxfxcxdxbxegedabagacad'; export LSCOLORS
+LSCOLORS=d; export LSCOLORS
 export PAGER=less
 export EDITOR=vim
 alias grepc="grep -nr --color=always"
Fix syntax error in lscolors
