export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/home/njk/bin:/usr/local/j2re1.4.2/bin export CFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer" export CXXFLAGS=$CFLAGS export EDITOR="vim" export VISUAL=$EDITOR export MAIL="~/Maildir" export BROWSER="firefox" #export __GL_SYNC_TO_VBLANK=1 export ENV="/etc/profile" export MANPAGER="less -R" export PAGER="col -b | /usr/local/share/vim/vim63b/macros/less.sh -" #export MANPAGER="col -b | /usr/local/share/vim/vim63b/macros/less.sh -c 'set ft=man nomod nolist' -" export NETHACKOPTIONS="fruit:grapefruit,IBMgraphics,name:Vak,number_pad,color,eight_bit_tty" export QTDIR="/usr/local/qt" export QT_XFT=1 export GDK_USE_XFT=1 export LESSCHARSET=latin1 #export __GL_SINGLE_THREADED=1 export MOZILLA_FIVE_HOME="/usr/local/firefox" export PYTHONDOCS="/usr/local/share/doc/python" HISTSIZE=200 HISTFILE=~/.zsh_history SAVEHIST=200 [[ $TERM = "xterm" ]] && export TERM="xterm-color" bindkey -me autoload -U compinit compinit case $TERM in screen*) precmd() { [[ -t 1 ]] || return print -Pn "\e\"%n@%m:%~\e\134" } preexec () { [[ -t 1 ]] || return print -Pn "\e\"$1\e\134" } ;; *xterm*) precmd() { [[ -t 1 ]] || return print -Pn "\e]2;%n@%m:%~\a" } preexec () { [[ -t 1 ]] || return print -Pn "\e]2;$1\a" } ;; linux) loadkeys ~/.keymap &> /dev/null setterm -blength 0 ;; esac case $TERM in linux|screen*) bindkey '\e[2~' overwrite-mode # Ins bindkey '\e[3~' delete-char # Del bindkey '\e[1~' beginning-of-line # Home bindkey '\e[4~' end-of-line # End bindkey '\e[5~' history-search-backward # PgUp bindkey '\e[6~' history-search-forward # PgDn ;; xterm*) xset b off bindkey "\e[2~" overwrite-mode # Ins bindkey "\e[3~" delete-char # Del bindkey '\e[1~' beginning-of-line # Home bindkey '\e[4~' end-of-line # End bindkey '\e[5~' up-line-or-history # PgUp bindkey '\e[6~' down-line-or-history # PgDn ;; esac if [ -x /usr/bin/tput -a -x /usr/bin/stty ] ; then /usr/bin/stty erase `/usr/bin/tput kbs 2>/dev/null` 2>/dev/null fi eval `dircolors -b` export ZLS_COLORS=$LS_COLORS alias ls='ls --color' alias df='df -hT' alias ocaml='rlwrap ocaml' alias vi=vim alias make=pretty_make.py # Expansion options zstyle ':completion:*' completer _complete _prefix zstyle ':completion::prefix-1:*' completer _complete zstyle ':completion:incremental:*' completer _complete _correct zstyle ':completion:predict:*' completer _complete # Completion caching zstyle ':completion::complete:*' use-cache 1 zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST # Use menu selection zstyle ':completion:*' menu select=1 # Expand partial paths zstyle ':completion:*' expand 'yes' zstyle ':completion:*' squeeze-slashes 'yes' # Include non-hidden directories in globbed file completions # for certain commands zstyle ':completion::complete:*' '\' # Use menuselection for pid completion zstyle ':completion:*:*:kill:*' menu yes select zstyle ':completion:*:kill:*' force-list always # tag-order 'globbed-files directories' all-files zstyle ':completion::complete:*:tar:directories' file-patterns '*~.*(-/)' # Don't complete backup files as executables zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~' # Separate matches into groups zstyle ':completion:*:matches' group 'yes' # With commands like rm, it's annoying if you keep getting offered the same # file multiple times. This fixes it. Also good for cp, et cetera.. zstyle ':completion:*:rm:*' ignore-line yes zstyle ':completion:*:cp:*' ignore-line yes # Describe each match group. zstyle ':completion:*:descriptions' format "%B---- %d%b" # Messages/warnings format zstyle ':completion:*:messages' format '%B%U---- %d%u%b' zstyle ':completion:*:warnings' format '%B%U---- no match for: %d%u%b' # Describe options in full zstyle ':completion:*:options' description 'yes' zstyle ':completion:*:options' auto-description '%d' # Simulate spider's old abbrev-expand 3.0.5 patch zstyle ':completion:*:history-words' stop verbose zstyle ':completion:*:history-words' remove-all-dups yes zstyle ':completion:*:history-words' list false # hosts for completion zstyle '*' hosts darksword soulforge wraithverge excalibur \ brightrain.aerifal.cx zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*:*:kill:*' list-colors '=%*=01;31' setopt \ NO_all_export \ always_last_prompt \ always_to_end \ append_history \ NO_auto_cd \ auto_list \ auto_menu \ auto_name_dirs \ auto_param_keys \ auto_param_slash \ NO_auto_pushd \ auto_remove_slash \ NO_auto_resume \ bad_pattern \ NO_bang_hist \ NO_beep \ brace_ccl \ correct_all \ NO_bsd_echo \ cdable_vars \ NO_chase_links \ clobber \ complete_aliases \ complete_in_word \ correct \ NO_correct_all \ NO_csh_junkie_history \ NO_csh_junkie_loops \ NO_csh_junkie_quotes \ NO_csh_null_glob \ equals \ extended_glob \ extended_history \ NO_flow_control \ function_argzero \ glob \ NO_glob_assign \ glob_complete \ NO_glob_dots \ glob_subst \ hash_cmds \ hash_dirs \ hash_list_all \ hist_allow_clobber \ hist_beep \ hist_ignore_dups \ hist_ignore_space \ hist_no_store \ hist_verify \ NO_hup \ NO_ignore_braces \ NO_ignore_eof \ interactive_comments \ inc_append_history \ NO_list_ambiguous \ NO_list_beep \ list_types \ long_list_jobs \ magic_equal_subst \ NO_mail_warning \ NO_mark_dirs \ menu_complete \ multios \ nomatch \ notify \ NO_null_glob \ numeric_glob_sort \ NO_overstrike \ path_dirs \ posix_builtins \ NO_print_exit_value \ prompt_cr \ prompt_subst \ pushd_ignore_dups \ NO_pushd_minus \ pushd_silent \ pushd_to_home \ rc_expand_param \ NO_rc_quotes \ NO_rm_star_silent \ NO_sh_file_expansion \ sh_option_letters \ short_loops \ NO_sh_word_split \ NO_single_line_zle \ NO_sun_keyboard_hack \ unset \ NO_verbose \ zle umask 077 PS1=$'%{\e[1;32m%}%n@%m%{\e[1;34m%}:%{\e[1;33m%}%2~%{\e[0;34m%}%#%{\e[0m%} '