Mercurial > dotfiles.old
annotate zshrc @ 32:2da8d8daa033
Add remaps to vim and aliases to zsh
author | zegervdv <zegervdv@me.com> |
---|---|
date | Fri, 04 Apr 2014 18:12:59 +0200 |
parents | f9f04cee7f51 |
children | 63f450f5c3fb |
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" | |
9 | |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
11
diff
changeset
|
10 setopt correct_all |
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
11
diff
changeset
|
11 |
0 | 12 # Example aliases |
13 # alias zshconfig="mate ~/.zshrc" | |
14 # alias ohmyzsh="mate ~/.oh-my-zsh" | |
15 | |
16 # Set to this to use case-sensitive completion | |
17 # CASE_SENSITIVE="true" | |
18 | |
19 # Comment this out to disable bi-weekly auto-update checks | |
20 # DISABLE_AUTO_UPDATE="true" | |
21 | |
22 # Uncomment to change how many often would you like to wait before auto-updates occur? (in days) | |
23 # export UPDATE_ZSH_DAYS=13 | |
24 | |
25 # Uncomment following line if you want to disable colors in ls | |
26 # DISABLE_LS_COLORS="true" | |
27 | |
28 # Uncomment following line if you want to disable autosetting terminal title. | |
29 # DISABLE_AUTO_TITLE="true" | |
30 | |
31 # Uncomment following line if you want red dots to be displayed while waiting for completion | |
32 COMPLETION_WAITING_DOTS="true" | |
33 | |
34 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
35 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
36 # Example format: plugins=(rails git textmate ruby lighthouse) | |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
11
diff
changeset
|
37 plugins=(git z textmate sublime ruby history-substring-search brew gitfast osx terminalapp vagrant web-search gitignore brew-cask rake-fast) |
0 | 38 |
39 source $ZSH/oh-my-zsh.sh | |
40 | |
41 # source $ZSH/plugins/history-substring-search/history-substring-search.zsh | |
42 | |
43 # Customize to your needs... | |
44 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 | |
45 export PATH="/usr/local/bin:$PATH" | |
46 export PATH="$(brew --prefix ruby)/bin:$PATH" | |
47 export NODE_PATH="/usr/local/lib/node" | |
48 export PATH="/usr/local/share/npm/bin:$PATH" | |
6 | 49 export PATH=$PATH:$HOME/.bin |
0 | 50 eval "$(rbenv init -)" |
51 | |
52 | |
53 export GNUTERM=X11 | |
54 export SVN_EDITOR=vim | |
55 | |
56 export CLICOLOR=1 | |
57 export LSCOLORS=GxFxCxDxBxegedabagaced | |
58 | |
59 export EDITOR='vim' | |
60 | |
61 export GREP_COLOR=32 | |
62 | |
63 # Shortcuts | |
64 alias blade="cd \"/Volumes/Blade 32GB/\"" | |
65 alias p="~/Documents/projects" | |
66 | |
67 # Commands | |
68 alias grep="grep --color=auto" | |
69 alias beer="bundle exec rake" | |
70 alias ll="ls -al" | |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
11
diff
changeset
|
71 alias l="ls -l" |
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
11
diff
changeset
|
72 alias gsl="git sl" |
0 | 73 |
74 # Functions | |
75 gcat () { | |
76 cat $1 | egrep "$2|$" | |
77 } | |
78 | |
79 # alias ctags='$(brew --prefix ctags)/bin/ctags' | |
80 | |
81 # Disable Autocorrections | |
82 alias tmux='nocorrect tmux' | |
83 alias mvim="reattach-to-user-namespace mvim" | |
84 alias vim="reattach-to-user-namespace vim" | |
85 alias ag="ag --color" | |
8 | 86 |
87 compctl -g '~/.teamocil/*(:t:r)' teamocil | |
88 | |
3
44d3af8838f8
Add support for local zshrc and vimrc files
zegervdv <zegervdv@me.com>
parents:
0
diff
changeset
|
89 [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local |