Mercurial > dotfiles.old
comparison zshrc @ 3:44d3af8838f8
Add support for local zshrc and vimrc files
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 23 Feb 2014 17:43:37 +0100 |
parents | 36a9b3a28861 |
children | d35280c9b023 |
comparison
equal
deleted
inserted
replaced
2:a8279f1d5b39 | 3:44d3af8838f8 |
---|---|
30 COMPLETION_WAITING_DOTS="true" | 30 COMPLETION_WAITING_DOTS="true" |
31 | 31 |
32 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | 32 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) |
33 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | 33 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ |
34 # Example format: plugins=(rails git textmate ruby lighthouse) | 34 # Example format: plugins=(rails git textmate ruby lighthouse) |
35 plugins=(git z textmate sublime ruby history-substring-search brew gitfast osx terminalapp tmuxinator vagrant web-search) | 35 plugins=(git z textmate sublime ruby history-substring-search brew gitfast osx terminalapp vagrant web-search) |
36 | 36 |
37 source $ZSH/oh-my-zsh.sh | 37 source $ZSH/oh-my-zsh.sh |
38 | 38 |
39 # source $ZSH/plugins/history-substring-search/history-substring-search.zsh | 39 # source $ZSH/plugins/history-substring-search/history-substring-search.zsh |
40 | 40 |
42 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 | 42 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 |
43 export PATH="/usr/local/bin:$PATH" | 43 export PATH="/usr/local/bin:$PATH" |
44 export PATH="$(brew --prefix ruby)/bin:$PATH" | 44 export PATH="$(brew --prefix ruby)/bin:$PATH" |
45 export NODE_PATH="/usr/local/lib/node" | 45 export NODE_PATH="/usr/local/lib/node" |
46 export PATH="/usr/local/share/npm/bin:$PATH" | 46 export PATH="/usr/local/share/npm/bin:$PATH" |
47 export PATH="$HOME/.tmuxifier/bin:$PATH" | |
48 eval "$(rbenv init -)" | 47 eval "$(rbenv init -)" |
49 eval "$(tmuxifier init -)" | |
50 | 48 |
51 | 49 |
52 export GNUTERM=X11 | 50 export GNUTERM=X11 |
53 export SVN_EDITOR=vim | 51 export SVN_EDITOR=vim |
54 | 52 |
57 | 55 |
58 export EDITOR='vim' | 56 export EDITOR='vim' |
59 | 57 |
60 export GREP_COLOR=32 | 58 export GREP_COLOR=32 |
61 | 59 |
62 export TMUXIFIER_LAYOUT_PATH="$HOME/.tmux-layouts" | |
63 | |
64 # Shortcuts | 60 # Shortcuts |
65 alias blade="cd \"/Volumes/Blade 32GB/\"" | 61 alias blade="cd \"/Volumes/Blade 32GB/\"" |
66 alias p="~/Documents/projects" | 62 alias p="~/Documents/projects" |
67 | 63 |
68 # Commands | 64 # Commands |
69 alias grep="grep --color=auto" | 65 alias grep="grep --color=auto" |
70 alias beer="bundle exec rake" | 66 alias beer="bundle exec rake" |
71 alias ll="ls -al" | 67 alias ll="ls -al" |
72 alias mux="tmuxifier" | |
73 | 68 |
74 # Functions | 69 # Functions |
75 gcat () { | 70 gcat () { |
76 cat $1 | egrep "$2|$" | 71 cat $1 | egrep "$2|$" |
77 } | 72 } |
83 alias mvim="reattach-to-user-namespace mvim" | 78 alias mvim="reattach-to-user-namespace mvim" |
84 alias vim="reattach-to-user-namespace vim" | 79 alias vim="reattach-to-user-namespace vim" |
85 alias ag="ag --color" | 80 alias ag="ag --color" |
86 # Syntax Highlighting | 81 # Syntax Highlighting |
87 # source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | 82 # source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |
83 # | |
84 [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local |