Y4BZOKUVFF553HW77QK6AXMSII7VDE4BQFVETTFIZKLIZPUW2MKAC alias vi='vim'vim() {stty -ixonenv vim $*stty ixany}
setopt allexportsetopt autocdsetopt autolistsetopt autopushdsetopt nobeepsetopt cdablevarssetopt nochaselinkssetopt completeinwordsetopt histexpiredupsfirstsetopt histignorealldupssetopt histverifysetopt listpackedsetopt markdirssetopt nobgnicesetopt promptsubstsetopt pushdignoredupssetopt sharehistoryexport SAVEHIST=10000000export HISTSIZE=10000000export HISTFILE=$HOME/.zshistory
set -o vibindkey -M vicmd '?' history-incremental-search-backwardbindkey '^X^e' edit-command-linebindkey '^I' complete-wordbindkey -M viins '^Oc' _correct_wordbindkey -M viins '^O?' _complete_debug# detecting the terminal to get the keybindings right# TODO: check if obsoleted by other thingsif [[ -z $BINDKEYS ]]; then# echo 'defining bindkeys in zshrc'BINDKEYS=${TERM%-256color}BINDKEYS=${BINDKEYS%-noit}fibindkey -eif [[ $BINDKEYS == "screen" ]]; thenbindkey '[D' backward-wordbindkey '[C' forward-wordbindkey '[1~' beginning-of-linebindkey '[4~' end-of-lineelsebindkey -M viins '[1;5D' backward-word# bindkey '[5D' backward-wordbindkey -M viins '[1;5C' forward-word# bindkey '[5C' forward-wordbindkey -M viins 'OH' beginning-of-linebindkey -M viins 'OF' end-of-linefibindkey '[3~' delete-char
if command -v emacsclient 2>&1 >/dev/null; thenfunction newemacs() {emacsclient -c "$@"}export VISUAL=newemacselif command -v vim 2>&1 >/dev/null; thenexport VISUAL=$(which vim)fiexport EDITOR=vimvim() {stty -ixonenv vim $*stty ixany}function :e {$VISUAL "$@"}alias vi='vim'alias v=$VISUALalias e=$EDITOR
export GNU_PREFIX=''platform="$(uname -s)"echo the platform is "$platform"if [[ $platform == 'Darwin' ]] && command -v gls 2>&1 >/dev/null; thenGNU_PREFIX='g'elseecho gnu tools not foundfi
autoload -U colors && colorsautoload zsh/parameterautoload -Uz vcs_infoautoload -U add-zsh-hookautoload run-helpautoload -U zfinitautoload -U tcp_proxyautoload -U tcp_openautoload -U tcp_pointautoload -U tcp_shootautoload -Uz compinitautoload edit-command-line
cat <<'EOP':`. ; .'`. .-'''-. .';' __ _;'/ '_ _`\| _( a ( a |'''''| (_) > |``````\ \ / /`. `--'.'.' `-,,,-' `..' : `. hjw:EOP
#:depends-on:autoloads#:depends-on:sh-opts#:depends-on:detect-gnu#:depends-on:key-bindings#:depends-on:editor-setup
autoload -U colors && colorsautoload zsh/parameterautoload -Uz vcs_infoautoload -U add-zsh-hookautoload run-helpautoload -U zfinitautoload -U tcp_proxyautoload -U tcp_openautoload -U tcp_pointautoload -U tcp_shootautoload -Uz compinitautoload edit-command-linesetopt allexportsetopt autocdsetopt autolistsetopt autopushdsetopt nobeepsetopt cdablevarssetopt nochaselinkssetopt completeinwordsetopt histexpiredupsfirstsetopt histignorealldupssetopt histverifysetopt listpackedsetopt markdirssetopt nobgnicesetopt promptsubstsetopt pushdignoredupssetopt sharehistoryexport GNU_PREFIX=''platform="$(uname -s)"echo the platform is "$platform"if [[ $platform == 'Darwin' ]]; thenGNU_PREFIX='g'elseecho not osxfiexport INFOPATH=/usr/local/share/info:/usr/local/texlive/2009/texmf/doc/info
gtpa() {gtp $1cmd="alias \"gt_$1\"=\"gtp $1\""eval $cmdtruncfile 50 $HOME/.gtaliasesecho $cmd >> $HOME/.gtaliases}
hash -d "desktop=$HOME/Desktop"hash -d "downloads=$HOME/Downloads"hash -d "programming=$HOME/Programming"gtde() { cd ~desktop/"${(j</>)*}" }gtdo() { cd ~downloads/"${(j</>)*}" }gtp() {cd ~programming/"${(j</>)*}" }gt() { cd ~"${(j</>)*}" }[[ -e $HOME/.gtaliases ]] || touch $HOME/.gtaliases
set -o vibindkey -M vicmd '?' history-incremental-search-backwardbindkey '^X^e' edit-command-linebindkey '^I' complete-wordbindkey -M viins '^Oc' _correct_wordbindkey -M viins '^O?' _complete_debug# detecting the terminal to get the keybindings right# TODO: check if obsoleted by other thingsif [[ -z $BINDKEYS ]]; then# echo 'defining bindkeys in zshrc'BINDKEYS=${TERM%-256color}BINDKEYS=${BINDKEYS%-noit}fibindkey -eif [[ $BINDKEYS == "screen" ]]; thenbindkey '[D' backward-wordbindkey '[C' forward-wordbindkey '[1~' beginning-of-linebindkey '[4~' end-of-lineelsebindkey -M viins '[1;5D' backward-word# bindkey '[5D' backward-wordbindkey -M viins '[1;5C' forward-word# bindkey '[5C' forward-wordbindkey -M viins 'OH' beginning-of-linebindkey -M viins 'OF' end-of-linefibindkey '[3~' delete-char
alias vi='vim'vim() {stty -ixonenv vim $*stty ixany}
setopt allexportsetopt autocdsetopt autolistsetopt autopushdsetopt nobeepsetopt cdablevarssetopt nochaselinkssetopt completeinwordsetopt histexpiredupsfirstsetopt histignorealldupssetopt histverifysetopt listpackedsetopt markdirssetopt nobgnicesetopt promptsubstsetopt pushdignoredupssetopt sharehistoryexport SAVEHIST=10000000export HISTSIZE=10000000export HISTFILE=$HOME/.zshistory
set -o vibindkey -M vicmd '?' history-incremental-search-backwardbindkey '^X^e' edit-command-linebindkey '^I' complete-wordbindkey -M viins '^Oc' _correct_wordbindkey -M viins '^O?' _complete_debug# detecting the terminal to get the keybindings right# TODO: check if obsoleted by other thingsif [[ -z $BINDKEYS ]]; then# echo 'defining bindkeys in zshrc'BINDKEYS=${TERM%-256color}BINDKEYS=${BINDKEYS%-noit}fibindkey -eif [[ $BINDKEYS == "screen" ]]; thenbindkey '[D' backward-wordbindkey '[C' forward-wordbindkey '[1~' beginning-of-linebindkey '[4~' end-of-lineelsebindkey -M viins '[1;5D' backward-word# bindkey '[5D' backward-wordbindkey -M viins '[1;5C' forward-word# bindkey '[5C' forward-wordbindkey -M viins 'OH' beginning-of-linebindkey -M viins 'OF' end-of-linefibindkey '[3~' delete-char
if command -v emacsclient 2>&1 >/dev/null; thenfunction newemacs() {emacsclient -c "$@"}export VISUAL=newemacselif command -v vim 2>&1 >/dev/null; thenexport VISUAL=$(which vim)fiexport EDITOR=vimvim() {stty -ixonenv vim $*stty ixany}function :e {$VISUAL "$@"}alias vi='vim'alias v=$VISUALalias e=$EDITOR
export GNU_PREFIX=''platform="$(uname -s)"echo the platform is "$platform"if [[ $platform == 'Darwin' ]] && command -v gls 2>&1 >/dev/null; thenGNU_PREFIX='g'elseecho gnu tools not foundfi
autoload -U colors && colorsautoload zsh/parameterautoload -Uz vcs_infoautoload -U add-zsh-hookautoload run-helpautoload -U zfinitautoload -U tcp_proxyautoload -U tcp_openautoload -U tcp_pointautoload -U tcp_shootautoload -Uz compinitautoload edit-command-line