if [ -f /etc/profile ]; then
        source /etc/profile
fi

#. ~/.profile

#PS1=$'
#%{\e[32m%}%n@%m'${WINDOW:+"[$WINDOW]"}$'%{\e[0m:%}%{\e[1;34m%~\e[0m%}
#$ '
#export PS1
#export PS1=$'%{\e[32m%}%n@%m'
#export RPROMPT=$'%{\e[1;34m%~\e[0m%}'
#PS1=$'\n%{\e]2; %m:%~ \a\e]1;%%: %~\a%}%{\e[4m\e[44m\e[01m%}%n@%m %~ %%%{\e[00m%} '

export PROMPT=$'\n%{\e[32m%}%n@%m'${WINDOW:+"[$WINDOW]"}$'%{\e[00m%}:$ '
export RPROMPT=$'%{\e[34m\e[01m%}%~%{\e[00m%}'
#PATH=${PATH}:/home/zakki/cygwin/bin:/home/zakki/cygwin/i686-pc-cygwin/bin:/home/zakki/local/bin:/home/zakki/bin
#export PATH
alias cygmake="make MAKE=make CROSSCOMPILEDIR='/home/zakki/cygwin/bin'"
alias cygmakeg="make MAKE=make CDEBUGFLAGS=-g CXXDEBUGFLAGS=-g LDSTRIPFLAGS=  CROSSCOMPILEDIR='/home/zakki/cygwin/bin'"
alias kterm="kterm -km euc -xim" 

autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end  history-search-end
bindkey '^N' history-beginning-search-forward-end
bindkey '^P' history-beginning-search-backward-end
bindkey '^I' expand-or-complete-prefix
bindkey '^O' menu-expand-or-complete
HISTSIZE=100000
HISTFILE=$HOME/.zsh-history
SAVEHIST=100000
setopt extended_history
function history-all { history -E 1 }
# setopt share_history
setopt hist_ignore_dups
setopt hist_ignore_all_dups
setopt NO_AUTOMENU

autoload -U compinit
compinit