# Put this file in your home folder under the name .bashrc and
#  create a file .profile containing just this one cryptic line that
#  reads and interprets the .bashrc every time you open a new terminal:
#
# . ~/.bashrc
#


# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"


PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\] \$ '


# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi


#
# Add some directories to the standard PATH. Current dir '.' comes first
#
PATH=.:$PATH:/sbin:/usr/sbin:/usr/local/bin:${HOME}/scripts

alias h=history
alias ls='ls -CGF'
alias la='/bin/ls -aC'
alias lal='/bin/ls -alt'
alias lalh='lal | head'
alias l='/bin/ls -lt'
alias lh='l | head'
alias ldir='find . -type d -maxdepth 1'
alias m='more'
alias rm='rm -i'

alias clera='clear'

alias hexdump='hexdump -C'
alias gvim='gvim -geometry 80x40'
alias df='df -k'


cl () {  cd $*; ls; }

vind () { find . -iname "*$1*"; }

