Mercurial > dotfiles.old
annotate zshrc @ 92:afe2d02577c2
Small fixes to vimrc
author | zegervdv <zegervdv@me.com> |
---|---|
date | Thu, 07 Aug 2014 08:39:22 +0200 |
parents | 3a37086414bd |
children | cdff2a5e45b2 |
rev | line source |
---|---|
0 | 1 # Path to your oh-my-zsh configuration. |
2 ZSH=$HOME/.oh-my-zsh | |
3 | |
4 # Set name of the theme to load. | |
5 # Look in ~/.oh-my-zsh/themes/ | |
6 # Optionally, if you set this to "random", it'll load a random theme each | |
7 # time that oh-my-zsh is loaded. | |
8 ZSH_THEME="custom" | |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
11
diff
changeset
|
9 setopt correct_all |
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
11
diff
changeset
|
10 |
0 | 11 # Example aliases |
12 # alias zshconfig="mate ~/.zshrc" | |
13 # alias ohmyzsh="mate ~/.oh-my-zsh" | |
14 | |
15 # Set to this to use case-sensitive completion | |
16 # CASE_SENSITIVE="true" | |
17 | |
18 # Comment this out to disable bi-weekly auto-update checks | |
19 # DISABLE_AUTO_UPDATE="true" | |
20 | |
21 # Uncomment to change how many often would you like to wait before auto-updates occur? (in days) | |
22 # export UPDATE_ZSH_DAYS=13 | |
23 | |
24 # Uncomment following line if you want to disable colors in ls | |
25 # DISABLE_LS_COLORS="true" | |
26 | |
27 # Uncomment following line if you want to disable autosetting terminal title. | |
28 # DISABLE_AUTO_TITLE="true" | |
29 | |
30 # Uncomment following line if you want red dots to be displayed while waiting for completion | |
31 COMPLETION_WAITING_DOTS="true" | |
32 | |
33 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
34 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
35 # Example format: plugins=(rails git textmate ruby lighthouse) | |
80 | 36 plugins=(git z textmate sublime ruby history-substring-search brew gitfast osx terminalapp vagrant web-search gitignore brew-cask rake-fast colorize colored-man extract) |
0 | 37 |
38 source $ZSH/oh-my-zsh.sh | |
39 | |
40 # source $ZSH/plugins/history-substring-search/history-substring-search.zsh | |
41 | |
86 | 42 setopt nobeep |
43 setopt notify | |
44 REPORTTIME=5 | |
45 # GRML style completion | |
46 # activate color-completion | |
47 zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
48 | |
49 # format on completion | |
50 zstyle ':completion:*:descriptions' format $'%{\e[0;31m%}completing %B%d%b%{\e[0m%}' | |
51 | |
52 # automatically complete 'cd -<tab>' and 'cd -<ctrl-d>' with menu | |
53 # zstyle ':completion:*:*:cd:*:directory-stack' menu yes select | |
54 | |
55 # insert all expansions for expand completer | |
56 zstyle ':completion:*:expand:*' tag-order all-expansions | |
57 zstyle ':completion:*:history-words' list false | |
58 | |
59 # activate menu | |
60 zstyle ':completion:*:history-words' menu yes | |
61 | |
62 # ignore duplicate entries | |
63 zstyle ':completion:*:history-words' remove-all-dups yes | |
64 zstyle ':completion:*:history-words' stop yes | |
65 | |
66 # match uppercase from lowercase | |
67 zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' | |
68 | |
69 zstyle ':completion:*:matches' group 'yes' | |
70 zstyle ':completion:*' group-name '' | |
71 if [[ "$NOMENU" -eq 0 ]] ; then | |
72 # if there are more than 5 options allow selecting from a menu | |
73 zstyle ':completion:*' menu select=5 | |
74 else | |
75 # don't use any menus at all | |
76 setopt no_auto_menu | |
77 fi | |
78 | |
79 zstyle ':completion:*:messages' format '%d' | |
80 zstyle ':completion:*:options' auto-description '%d' | |
81 | |
82 # describe options in full | |
83 zstyle ':completion:*:options' description 'yes' | |
84 | |
85 # complete manual by their section | |
86 zstyle ':completion:*:manuals' separate-sections true | |
87 zstyle ':completion:*:manuals.*' insert-sections true | |
88 zstyle ':completion:*:man:*' menu yes select | |
89 | |
90 # Search path for sudo completion | |
91 zstyle ':completion:*:sudo:*' command-path /usr/local/sbin \ | |
92 /usr/local/bin \ | |
93 /usr/sbin \ | |
94 /usr/bin \ | |
95 /sbin \ | |
96 /bin \ | |
97 /usr/X11R6/bin | |
98 | |
99 # provide .. as a completion | |
100 zstyle ':completion:*' special-dirs .. | |
101 | |
0 | 102 # Customize to your needs... |
103 export PATH=$PATH:/usr/local/opt/ruby/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:/usr/local/sbin | |
104 export PATH="/usr/local/bin:$PATH" | |
105 export PATH="$(brew --prefix ruby)/bin:$PATH" | |
106 export NODE_PATH="/usr/local/lib/node" | |
107 export PATH="/usr/local/share/npm/bin:$PATH" | |
6 | 108 export PATH=$PATH:$HOME/.bin |
0 | 109 eval "$(rbenv init -)" |
110 | |
111 | |
112 export GNUTERM=X11 | |
113 export SVN_EDITOR=vim | |
114 | |
115 export CLICOLOR=1 | |
116 export LSCOLORS=GxFxCxDxBxegedabagaced | |
117 | |
118 export EDITOR='vim' | |
119 | |
120 export GREP_COLOR=32 | |
121 | |
122 # Shortcuts | |
123 alias blade="cd \"/Volumes/Blade 32GB/\"" | |
124 alias p="~/Documents/projects" | |
125 | |
126 # Commands | |
127 alias grep="grep --color=auto" | |
128 alias beer="bundle exec rake" | |
80 | 129 alias ll="ls -altrh" |
130 alias l="ls -lthr" | |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
11
diff
changeset
|
131 alias gsl="git sl" |
0 | 132 |
133 # Functions | |
134 gcat () { | |
135 cat $1 | egrep "$2|$" | |
136 } | |
137 | |
138 # alias ctags='$(brew --prefix ctags)/bin/ctags' | |
139 | |
140 # Disable Autocorrections | |
141 alias tmux='nocorrect tmux' | |
142 alias mvim="reattach-to-user-namespace mvim" | |
143 alias vim="reattach-to-user-namespace vim" | |
144 alias ag="ag --color" | |
79 | 145 alias dot="cd ~/.dotfiles" |
8 | 146 |
147 compctl -g '~/.teamocil/*(:t:r)' teamocil | |
148 | |
3
44d3af8838f8
Add support for local zshrc and vimrc files
zegervdv <zegervdv@me.com>
parents:
0
diff
changeset
|
149 [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local |
35 | 150 |
83 | 151 bindkey '\e[A' history-beginning-search-backward |
152 bindkey '\e[B' history-beginning-search-forward | |
153 | |
67 | 154 source ~/.fzf.zsh |
83 | 155 q() { |
156 if [[ -z "$*" ]]; then | |
157 cd "$(_z -l 2>&1 | sed -n 's/^[ 0-9.,]*//p' | fzf)" | |
158 else | |
159 _z "$@" | |
160 fi | |
161 } |