##################################################################### # VARS export USER=`id -aur` local ZSHDIR="$HOME/.zsh" export SHELL='/bin/zsh' export EDITOR=vim export PAGER=most # HISTORY HISTFILE="$ZSHDIR/HISTORY" HISTSIZE=3500 SAVEHIST=6000 #LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;34:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:' eval $(dircolors /etc/DIR_COLORS) ##################################################################### # LOAD autoload -U zmv autoload history-search-end # autoload -U url-quote-magic # zle -N self-insert url-quote-magic autoload -U compinit && compinit autoload -U zed autoload -U colors zmodload -i zsh/complist zmodload -i zsh/deltochar zmodload -i zsh/mathfunc zmodload -a zsh/stat stat zmodload -a zsh/zpty zpty zmodload -a zsh/zprof zprof zmodload -a zsh/mapfile mapfile autoload -U insert-files && zle -N insert-files ##################################################################### # KEYBINDINGS bindkey -e bindkey "^Xf" insert-files bindkey '\ei' menu-complete # menu completion via esc-i bindkey '\ee' edit-command-line autoload -U predict-on zle -N predict-on zle -N predict-off bindkey "^X^Y" predict-on bindkey "^Y" predict-off ##################################################################### # SOURCING source "$ZSHDIR/aliases" source "$ZSHDIR/completion" source "$ZSHDIR/functions" source "$ZSHDIR/kde" ##################################################################### # PROMPT(s) PROMPT=$'%(!.%{\e[0;31m%}.%{\e[0;32m%})[%{\e[0;39m%}%n@%m:%2~%(!.%{\e[0;31m%}.%{\e[0;32m%})]%(?..[%{\e[0;33m%}%?%(!.%{\e[0;31m%}.%{\e[0;32m%})]) %(!.%{\e[0;31m%}.%{\e[0;32m%})%# %{\e[0;39m%}'; ##################################################################### # OPTIONS umask 022 setopt inc_append_history setopt SHARE_HISTORY setopt extended_history setopt histignorealldups setopt histignorespace setopt hist_allow_clobber setopt hist_no_store setopt auto_cd setopt extended_glob setopt hash_list_all setopt completeinword setopt glob_complete setopt notify setopt nohup setopt nobeep setopt numeric_glob_sort setopt multios setopt correct setopt autolist setopt noclobber setopt complete_aliases setopt glob_complete setopt csh_junkie_history setopt ksh_option_print setopt bsd_echo setopt always_last_prompt setopt auto_pushd setopt auto_name_dirs setopt cdable_vars setopt hist_find_no_dups setopt zle # WATCH watch=(notme root) WATCHFMT='%n %a %l from %m at %t.' LOGCHECK=120 # REPORTTIME export TIMEFMT="%U user %S system %P cpu %*E total, running %J" export COLORTERM=yes REPORTTIME=5 #export LC_ALL=en_US #LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:'