MAKEFLAGS=-j$((`grep ^processor /proc/cpuinfo | tail -1 | awk '{print $3}'` + 1))

HOST=${HOSTNAME%%\.*}
(( `id -u` == 0 )) && PS1='$HOST# ' || PS1='$HOST> '

case "$-" in *i*)
    alias ls='ls -F --color=auto'
    alias ll='ls -alhF --color=auto'
    alias cp='cp -i'
    alias mv='mv -i'
    alias rm='rm -i'
    alias neta='netstat -antup'
    alias netl='netstat -lntup'
    #alias runq='postfix flush'
    #alias runq='sendmail -q'

    alias clean="grep -vE '^[[:space:]]*(;|#|$)'"
    alias findexec='find . -executable -type f'
    alias lynx='lynx -accept_all_cookies'
    alias lynxg='lynx -accept_all_cookies https://www.google.com/ncr'
    alias irssi='echo did you forget to start gnu/screen or tmux?'
    #alias vs='ovs-vsctl'

    alias push='git commit -a --allow-empty-message -m "" && git push'
    alias commit='git commit --allow-empty-message -m ""'
    alias stat='git diff --stat --cached origin/master'

    #alias diff='colordiff'
    #alias wget='wget --ca-certificate=/etc/ssl/cacert.pem'
    #alias curl='curl --cacert /etc/ssl/cacert.pem'

    warn="this is the host system - unalias if you are sure"
    alias shutdown="echo $warn"
    alias reboot="echo $warn"
    alias poweroff="echo $warn"
    alias halt="echo $warn"
    unset warn

    #export TERM=linux
    export TERM=xterm
    #export TERM=xterm-256color

    export EDITOR=/usr/bin/vi
    export PAGER="/usr/bin/less -r"
    ;;
esac