Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The following lines were added by compinstall
- zstyle ':completion:*' completer _expand _complete _ignored _approximate
- zstyle ':completion:*' expand prefix suffix
- zstyle ':completion:*' format 'Completing %d'
- zstyle ':completion:*' group-name ''
- zstyle ':completion:*' insert-unambiguous true
- zstyle ':completion:*' max-errors 1
- zstyle ':completion:*' original true
- autoload -Uz compinit
- compinit
- # End of lines added by compinstall
- # Lines configured by zsh-newuser-install
- HISTFILE=~/.histfile
- HISTSIZE=200
- SAVEHIST=150
- setopt autocd extendedglob notify nohup
- unsetopt appendhistory beep
- bindkey -e
- # End of lines configured by zsh-newuser-install
- # autoload -U promptinit
- autoload zkbd
- autoload -Uz vcs_info
- autoload promptinit
- autoload compinit
- setopt auto_resume
- setopt AUTO_PUSHD
- promptinit
- compinit
- precmd()
- {
- PR_FILLBAR=""
- PR_PWDLEN=""
- local TERMWIDTH
- (( TERMWIDTH = ${COLUMNS} - 1 ))
- #
- local promptsize=${#${(%):-(%n@%M)(zsh:%L:screen/$WINDOW)()}}
- local pwdsize=${#${(%):-%~}}
- #
- if [[ "$promptsize + $pwdsize" -gt $TERMWIDTH ]]; then
- ((PR_PWDLEN=$TERMWIDTH - $promptsize))
- else
- PR_FILLBAR="${(l.(($TERMWIDTH - ($promptsize + $pwdsize)))..-.)}"
- fi
- # print $promptsize
- # print $pwdsize
- # if [-n "$STY"]; then
- jobs
- case $TERM in
- xterm*)
- print -nP "\e]0;%y: %1~: --\a"
- ;;
- esac
- }
- preexec()
- {
- case $TERM in
- xterm*)
- print -nP "\e]0;%y: %1~: $(echo $1 | grep -o '^[^ ]*')\a"
- ;;
- esac
- }
- [[ ! -f ${ZDOTDIR:-$HOME}/.zkbd/xterm-:0.0 ]] && zkbd
- source ${ZDOTDIR:-$HOME}/.zkbd/xterm-:0.0
- [[ -n ${key[Backspace]} ]] && bindkey "${key[Backspace]}" backward-delete-char
- [[ -n ${key[Insert]} ]] && bindkey "${key[Insert]}" overwrite-mode
- [[ -n ${key[Home]} ]] && bindkey "${key[Home]}" beginning-of-line
- [[ -n ${key[PageUp]} ]] && bindkey "${key[PageUp]}" up-line-or-history
- [[ -n ${key[Delete]} ]] && bindkey "${key[Delete]}" delete-char
- [[ -n ${key[End]} ]] && bindkey "${key[End]}" end-of-line
- [[ -n ${key[PageDown]} ]] && bindkey "${key[PageDown]}" down-line-or-history
- [[ -n ${key[Up]} ]] && bindkey "${key[Up]}" up-line-or-search
- [[ -n ${key[Left]} ]] && bindkey "${key[Left]}" backward-char
- [[ -n ${key[Down]} ]] && bindkey "${key[Down]}" down-line-or-search
- [[ -n ${key[Right]} ]] && bindkey "${key[Right]}" forward-char
- bindkey ";5C" forward-word
- bindkey ";5D" backward-word
- alias bc='bc -il ~/.bc/*.bc'
- alias cl='clisp -repl ~/.cl/*.cl'
- # project aliases
- # thanks to Ryuzaki (http://dotfiles.org/~Ryuzaki/.zshrc)
- # for the "go" idea
- while read line; do
- p=( `echo $line | egrep -o -e "[^ ]+"` )
- alias go${p[1]}="cd ${p[2]}"
- done < "$HOME/.pro_targets"
Advertisement
Add Comment
Please, Sign In to add comment