# 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 dir='dir --color=auto'
    alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

# one-letter shortcuts
alias -- -='cd ..'
alias g='grep -Ein'
alias j='jobs -l'
alias l='ls -hltr'
alias p='ps -ef'
alias v='vim'

# graphical open shortcut
if [ `uname` == Linux ]; then
    alias o='xdg-open'
elif [ `uname` == Darwin ]; then
    alias o='open'
elif [ `uname` == FreeBSD ]; then
    alias o='xdg-open'
    alias ls='ls -G'
fi

# auto parameters
alias rm='rm -vi'
alias cp='cp -vi'
alias mv='mv -vi'
alias vi='vim'
alias emacs='emacs -nw'
alias sudo='sudo -E'
alias dialog='dialog --keep-tite --ascii-lines'


# 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 dir='dir --color=auto'
    alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

# one-letter shortcuts
alias -- -='cd ..'
alias g='grep -Ein'
alias j='jobs -l'
alias l='ls -hltr'
alias p='ps -ef'
alias v='vim'

# graphical open shortcut
if [ `uname` == Linux ]; then
    alias o='xdg-open'
elif [ `uname` == Darwin ]; then
    alias o='open'
elif [ `uname` == FreeBSD ]; then
    alias o='xdg-open'
    alias ls='ls -G'
fi

# auto parameters
alias rm='rm -vi'
alias cp='cp -vi'
alias mv='mv -vi'
alias vi='vim'


Remove aliases for sudo, emacs, and dialog
Remove aliases for sudo, emacs, and dialog
