Y4BZOKUVFF553HW77QK6AXMSII7VDE4BQFVETTFIZKLIZPUW2MKAC
alias vi='vim'
vim() {
stty -ixon
env vim $*
stty ixany
}
setopt allexport
setopt autocd
setopt autolist
setopt autopushd
setopt nobeep
setopt cdablevars
setopt nochaselinks
setopt completeinword
setopt histexpiredupsfirst
setopt histignorealldups
setopt histverify
setopt listpacked
setopt markdirs
setopt nobgnice
setopt promptsubst
setopt pushdignoredups
setopt sharehistory
export SAVEHIST=10000000
export HISTSIZE=10000000
export HISTFILE=$HOME/.zshistory
set -o vi
bindkey -M vicmd '?' history-incremental-search-backward
bindkey '^X^e' edit-command-line
bindkey '^I' complete-word
bindkey -M viins '^Oc' _correct_word
bindkey -M viins '^O?' _complete_debug
# detecting the terminal to get the keybindings right
# TODO: check if obsoleted by other things
if [[ -z $BINDKEYS ]]; then
# echo 'defining bindkeys in zshrc'
BINDKEYS=${TERM%-256color}
BINDKEYS=${BINDKEYS%-noit}
fi
bindkey -e
if [[ $BINDKEYS == "screen" ]]; then
bindkey '[D' backward-word
bindkey '[C' forward-word
bindkey '[1~' beginning-of-line
bindkey '[4~' end-of-line
else
bindkey -M viins '[1;5D' backward-word
# bindkey '[5D' backward-word
bindkey -M viins '[1;5C' forward-word
# bindkey '[5C' forward-word
bindkey -M viins 'OH' beginning-of-line
bindkey -M viins 'OF' end-of-line
fi
bindkey '[3~' delete-char
if command -v emacsclient 2>&1 >/dev/null; then
function newemacs() {
emacsclient -c "$@"
}
export VISUAL=newemacs
elif command -v vim 2>&1 >/dev/null; then
export VISUAL=$(which vim)
fi
export EDITOR=vim
vim() {
stty -ixon
env vim $*
stty ixany
}
function :e {
$VISUAL "$@"
}
alias vi='vim'
alias v=$VISUAL
alias e=$EDITOR
export GNU_PREFIX=''
platform="$(uname -s)"
echo the platform is "$platform"
if [[ $platform == 'Darwin' ]] && command -v gls 2>&1 >/dev/null; then
GNU_PREFIX='g'
else
echo gnu tools not found
fi
autoload -U colors && colors
autoload zsh/parameter
autoload -Uz vcs_info
autoload -U add-zsh-hook
autoload run-help
autoload -U zfinit
autoload -U tcp_proxy
autoload -U tcp_open
autoload -U tcp_point
autoload -U tcp_shoot
autoload -Uz compinit
autoload 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 && colors
autoload zsh/parameter
autoload -Uz vcs_info
autoload -U add-zsh-hook
autoload run-help
autoload -U zfinit
autoload -U tcp_proxy
autoload -U tcp_open
autoload -U tcp_point
autoload -U tcp_shoot
autoload -Uz compinit
autoload edit-command-line
setopt allexport
setopt autocd
setopt autolist
setopt autopushd
setopt nobeep
setopt cdablevars
setopt nochaselinks
setopt completeinword
setopt histexpiredupsfirst
setopt histignorealldups
setopt histverify
setopt listpacked
setopt markdirs
setopt nobgnice
setopt promptsubst
setopt pushdignoredups
setopt sharehistory
export GNU_PREFIX=''
platform="$(uname -s)"
echo the platform is "$platform"
if [[ $platform == 'Darwin' ]]; then
GNU_PREFIX='g'
else
echo not osx
fi
export INFOPATH=/usr/local/share/info:/usr/local/texlive/2009/texmf/doc/info
gtpa() {
gtp $1
cmd="alias \"gt_$1\"=\"gtp $1\""
eval $cmd
truncfile 50 $HOME/.gtaliases
echo $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 vi
bindkey -M vicmd '?' history-incremental-search-backward
bindkey '^X^e' edit-command-line
bindkey '^I' complete-word
bindkey -M viins '^Oc' _correct_word
bindkey -M viins '^O?' _complete_debug
# detecting the terminal to get the keybindings right
# TODO: check if obsoleted by other things
if [[ -z $BINDKEYS ]]; then
# echo 'defining bindkeys in zshrc'
BINDKEYS=${TERM%-256color}
BINDKEYS=${BINDKEYS%-noit}
fi
bindkey -e
if [[ $BINDKEYS == "screen" ]]; then
bindkey '[D' backward-word
bindkey '[C' forward-word
bindkey '[1~' beginning-of-line
bindkey '[4~' end-of-line
else
bindkey -M viins '[1;5D' backward-word
# bindkey '[5D' backward-word
bindkey -M viins '[1;5C' forward-word
# bindkey '[5C' forward-word
bindkey -M viins 'OH' beginning-of-line
bindkey -M viins 'OF' end-of-line
fi
bindkey '[3~' delete-char
alias vi='vim'
vim() {
stty -ixon
env vim $*
stty ixany
}
setopt allexport
setopt autocd
setopt autolist
setopt autopushd
setopt nobeep
setopt cdablevars
setopt nochaselinks
setopt completeinword
setopt histexpiredupsfirst
setopt histignorealldups
setopt histverify
setopt listpacked
setopt markdirs
setopt nobgnice
setopt promptsubst
setopt pushdignoredups
setopt sharehistory
export SAVEHIST=10000000
export HISTSIZE=10000000
export HISTFILE=$HOME/.zshistory
set -o vi
bindkey -M vicmd '?' history-incremental-search-backward
bindkey '^X^e' edit-command-line
bindkey '^I' complete-word
bindkey -M viins '^Oc' _correct_word
bindkey -M viins '^O?' _complete_debug
# detecting the terminal to get the keybindings right
# TODO: check if obsoleted by other things
if [[ -z $BINDKEYS ]]; then
# echo 'defining bindkeys in zshrc'
BINDKEYS=${TERM%-256color}
BINDKEYS=${BINDKEYS%-noit}
fi
bindkey -e
if [[ $BINDKEYS == "screen" ]]; then
bindkey '[D' backward-word
bindkey '[C' forward-word
bindkey '[1~' beginning-of-line
bindkey '[4~' end-of-line
else
bindkey -M viins '[1;5D' backward-word
# bindkey '[5D' backward-word
bindkey -M viins '[1;5C' forward-word
# bindkey '[5C' forward-word
bindkey -M viins 'OH' beginning-of-line
bindkey -M viins 'OF' end-of-line
fi
bindkey '[3~' delete-char
if command -v emacsclient 2>&1 >/dev/null; then
function newemacs() {
emacsclient -c "$@"
}
export VISUAL=newemacs
elif command -v vim 2>&1 >/dev/null; then
export VISUAL=$(which vim)
fi
export EDITOR=vim
vim() {
stty -ixon
env vim $*
stty ixany
}
function :e {
$VISUAL "$@"
}
alias vi='vim'
alias v=$VISUAL
alias e=$EDITOR
export GNU_PREFIX=''
platform="$(uname -s)"
echo the platform is "$platform"
if [[ $platform == 'Darwin' ]] && command -v gls 2>&1 >/dev/null; then
GNU_PREFIX='g'
else
echo gnu tools not found
fi
autoload -U colors && colors
autoload zsh/parameter
autoload -Uz vcs_info
autoload -U add-zsh-hook
autoload run-help
autoload -U zfinit
autoload -U tcp_proxy
autoload -U tcp_open
autoload -U tcp_point
autoload -U tcp_shoot
autoload -Uz compinit
autoload edit-command-line