-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
26 lines (21 loc) · 958 Bytes
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Initialize Ruby environment
eval "$(rbenv init -)" # initialize rbenv
# Initialize Python environment
export VIRTUAL_ENV_DISABLE_PROMPT=true
source ~/.pyenv/default/bin/activate
autoload -U colors && colors # load colors
setopt prompt_subst # turn on command substitution in the prompt
setopt menucomplete # show completion on first TAB
autoload compinit && compinit # load completions for Ruby, Git, etc.
export CDPATH=$HOME/Development # put my dev dir into the cd search path
export PATH=~/.dotfiles/bin:$PATH # put some helper scripts in the PATH
typeset -U path cdpath fpath # Remove duplicates
# set up my prompt
. ~/.dotfiles/zsh/git_prompt.zsh
# PROMPT='%{$fg[red]%} %(?,★,☆) %{$reset_color%}'
PROMPT='%{$fg[red]%} %(?,>>,??) %{$reset_color%}'
RPROMPT='%{$fg[blue]%}%~%{$reset_color%}$(git_prompt_info)'
# aliases
alias be='bundle exec'
alias ls='ls -G'
alias mvim='open -a MacVim'