Created
April 29, 2014 15:19
-
-
Save ir4y/11403464 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . /etc/profile | |
| HISTSIZE=100 | |
| SAVEHIST=100 | |
| HISTFILE=~/.zsh_history | |
| setopt append_history | |
| setopt inc_append_history | |
| setopt extended_history | |
| setopt hist_find_no_dups | |
| setopt hist_ignore_all_dups | |
| setopt hist_reduce_blanks | |
| setopt hist_ignore_space | |
| setopt hist_no_store | |
| setopt hist_no_functions | |
| setopt no_hist_beep | |
| setopt hist_save_no_dups | |
| setenv() { export $1=$2 } # csh compatibility | |
| setenv() { typeset -x "${1}${1:+=}${(@)argv[2,$#]}" } # csh compatibility | |
| freload() { while (( $# )); do; unfunction $1; autoload -U $1; shift; done } | |
| stty pass8 | |
| # Set prompts | |
| PROMPT="$(echo '%{\e[1;31m%}%m %{\e[1;34m%}%n #%{\e[1;37m%} ')" | |
| #bindkey -v # vi key bindings | |
| #bindkey -e # emacs key bindings | |
| bindkey ' ' magic-space # also do history expansion on space | |
| bindkey '^[[3~' delete-char | |
| case $TERM in | |
| linux) | |
| bindkey "^[[2~" yank | |
| bindkey "^[[3~" delete-char | |
| bindkey "^[[5~" up-line-or-history | |
| bindkey "^[[6~" down-line-or-history | |
| bindkey "^[[1~" beginning-of-line | |
| bindkey "^[[4~" end-of-line | |
| bindkey "^[e" expand-cmd-path | |
| bindkey "^[[A" up-line-or-search | |
| bindkey "^[[B" down-line-or-search | |
| bindkey " " magic-space | |
| ;; | |
| *xterm*|(dt|k|E)term) | |
| bindkey "\e[3;2~" delete-word # Shift-Del | |
| bindkey "^[[2~" yank | |
| bindkey "^[[3~" delete-char | |
| bindkey "^[[5~" up-line-or-history | |
| bindkey "^[[6~" down-line-or-history | |
| bindkey "\e[H" beginning-of-line | |
| bindkey "\e[F" end-of-line | |
| bindkey "^[e" expand-cmd-path ## C-e for expanding path of typed command | |
| bindkey "^[[A" up-line-or-search ## up arrow for back-history-search | |
| bindkey "^[[B" down-line-or-search ## down arrow for fwd-history-search | |
| bindkey " " magic-space ## do history expansion on space | |
| bindkey "^_" backward-delete-char | |
| bindkey "\e[1~" beginning-of-line | |
| bindkey "\e[4~" end-of-line | |
| bindkey "\e[5~" beginning-of-history | |
| bindkey "\e[6~" end-of-history | |
| bindkey "\e[3~" delete-char | |
| bindkey "\e[2~" quoted-insert | |
| bindkey "\e[5C" forward-word | |
| bindkey "\eOc" emacs-forward-word | |
| bindkey "\e[5D" backward-word | |
| bindkey "\eOd" emacs-backward-word | |
| bindkey "\e\e[C" forward-word | |
| bindkey "\e\e[D" backward-word | |
| bindkey "^H" backward-delete-word | |
| # for rxvt | |
| bindkey "\e[8~" end-of-line | |
| bindkey "\e[7~" beginning-of-line | |
| # for non RH/Debian xterm, can't hurt for RH/DEbian xterm | |
| bindkey "\eOH" beginning-of-line | |
| bindkey "\eOF" end-of-line | |
| # for freebsd console | |
| bindkey "\e[H" beginning-of-line | |
| bindkey "\e[F" end-of-line | |
| # completion in the middle of a line | |
| bindkey '^i' expand-or-complete-prefix | |
| ;; | |
| rxvt*) | |
| bindkey "\e[7~" beginning-of-line # Home | |
| bindkey "\e[8~" end-of-line # End | |
| bindkey "\e[3$" delete-word # Shift-Del | |
| ;; | |
| esac | |
| bindkey "^[[C" forward-char | |
| bindkey "^[[D" backward-char | |
| bindkey "^[[A" up-history | |
| bindkey "^[[B" down-history | |
| bindkey "^?" backward-delete-char | |
| bindkey "^H" backward-delete-char | |
| bindkey '\e[A' history-search-backward | |
| bindkey '\e[B' history-search-forward | |
| # setup backspace correctly | |
| #if [ -x /usr/bin/tput ]; then | |
| # check we're not in a dumb terminal | |
| # [ -n "`tput kbs 2>/dev/null`" ] && stty erase `tput kbs` | |
| #fi | |
| if [ -f /usr/share/mc/mc.gentoo ]; then | |
| . /usr/share/mc/mc.gentoo | |
| fi | |
| setopt histignoredups histignorespace | |
| setopt No_Beep | |
| unsetopt bgnice autoparamslash | |
| autoload -U compinit promptinit | |
| compinit | |
| promptinit; | |
| prompt adam2 | |
| zstyle ':completion::complete:*' use-cache 1 | |
| zmodload zsh/complist | |
| zstyle ':completion:*' menu yes select | |
| alias ls='ls --color ' | |
| alias lsla='ls --color -la' | |
| alias diablo='wine games/Diablo2-The\ Grapes\ of\ Wrath/Diablo\ II.exe' | |
| #alias aterm='aterm -tr -trsb -sh 30 -fn "-*-terminus-medium-r-normal-*-*-140-*-*-c-*-koi8-r" +sb -cr yellow -fg green >& /dev/null' | |
| alias aterm2='for i in `seq 5`;do aterm &!;done' | |
| alias multi-aterm='multi-aterm -tr -trsb -sh 30 -font "-*-terminus-medium-r-normal-*-*-140-*-*-c-*-koi8-r" +sb -fg green' | |
| alias suka='sudo su' | |
| alias vi='vim' | |
| alias pm='sudo pm-suspend' | |
| alias ql='LD_PRELOAD="/usr/lib/libpng12.so" /usr/bin/firefox http://www.quakelive.com/' | |
| src () { | |
| autoload -U zrecompile | |
| [ -f /etc/zsh/zshrc ] && zrecomile -p /etc/zsh/zshrc | |
| [ -f ~/.zshrc ] && zrecompile -p ~/.zshrc | |
| [ -f ~/.zshrc.zwc.old ] && rm -f ~/.zshrc.zwc.old | |
| [ -f ~/.zcompdump.zwc.old ] && rm -f ~/.zcompdump.zwc.old | |
| source ~/.zshrc | |
| } | |
| setopt autocd | |
| setopt CORRECT_ALL | |
| case $TERM in | |
| xterm* | rxvt) | |
| preexec(){print -Pn "\e]0;$0\a"} | |
| ;; | |
| esac | |
| autoload -U tetris | |
| zle -N tetris | |
| bindkey ^T tetris | |
| autoload -U zcalc | |
| #zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
| export GREP_COLOR="1;33" | |
| export EDITOR="vim" | |
| #export LS_COLORS='no=00;37:fi=00;37:di=01;36:ln=04;36:pi=33:so=01;35:do=01;35:bd=33;01:cd=33;01:or=31;01:su=37:sg=30:tw=30:ow=34:st=37:ex=01;31:*.cmd=01;31:*.exe=01;31:*.com=01;31:*.btm=01;31:*.sh=01;31:*.run=01;31:*.tar=33:*.tgz=33:*.arj=33:*.taz=33:*.lzh=33:*.zip=33:*.z=33:*.Z=33:*.gz=33:*.bz2=33:*.deb=33:*.rpm=33:*.jar=33:*.rar=33:*.jpg=32:*.jpeg=32:*.gif=32:*.bmp=32:*.pbm=32:*.pgm=32:*.ppm=32:*.tga=32:*.xbm=32:*.xpm=32:*.tif=32:*.tiff=32:*.png=32:*.mov=34:*.mpg=34:*.mpeg=34:*.avi=34:*.fli=34:*.flv=34:*.3gp=34:*.mp4=34:*.divx=34:*.gl=32:*.dl=32:*.xcf=32:*.xwd=32:*.flac=35:*.mp3=35:*.mpc=35:*.ogg=35:*.wav=35:*.m3u=35:'; | |
| #zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
| autoload colors && colors | |
| #PROMPT="%{$fg_bold[grey]%}%~/ %{$fg_bold[red]%}>>%{$reset_color%}" | |
| # правый | |
| # %(?,%{\e[0;32m%}:%)%{\e[0m%},%{\e[0;31m%}:(%{\e[0m%} | |
| # когда всё гуд хороший смайлик, когда ошибка то грусный, ну и цветные ясен фиг | |
| RPROMPT="%{$fg_bold[grey]%}%T %{$reset_color%}% %(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color%}" | |
| #zstyle ':completion:*:*:kill:*:processes' list-colors "=(#b) | |
| export PATH="~/projects/golang/bin:~/bin:$PATH" | |
| export GOROOT="/usr/local/go" | |
| export GOPATH="/home/ir4y/projects/golang" | |
| [[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh # This loads NVM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment