forked from r00k/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
89 lines (66 loc) · 2.92 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Never know when you're gonna need to popd!
#setopt AUTO_PUSHD
# Allow completing of the remainder of a command
#bindkey "^N" insert-last-word
# Show contents of directory after cd-ing into it
chpwd() {
ls -lrthG
}
# Find and set branch name var if in git repository.
# function git_branch_name()
# {
# branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}')
# if [[ $branch == "" ]];
# then
# :
# else
# echo '- ('$branch')'
# fi
# }
# Save a ton of history
HISTSIZE=20000
HISTFILE=~/.zsh_history
SAVEHIST=20000
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# Disable flow control commands (keeps C-s from freezing everything)
stty start undef
stty stop undef
# Enable autocomplete for git
autoload -U compinit && compinit
# Source my custom files after oh-my-zsh so I can override things.
# source /usr/local/bin/virtualenvwrapper.sh
source $HOME/.dotfiles/zsh/aliases
source $HOME/.dotfiles/zsh/functions
source $HOME/.dotfiles/zsh/git-prompt/zshrc.sh
PROMPT='%B%m%~%b$(git_super_status) %# '
# PROMPT='%B%m%~%b$(git_branch_name) %# '
export PYTHONSTARTUP=$HOME/.pyrc
export PATH="/Applications/Postgres.app/Contents/Versions/latest/bin/:$PATH"
export PATH=$PATH:/usr/texbin
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export PATH=/opt/homebrew/opt/[email protected]/libexec/bin:$PATH
export PATH=~/.rbenv/shims:$PATH
export EDITOR="vim"
export WORKON_HOME=$HOME/.virtualenvs
#source /usr/local/bin/virtualenvwrapper.sh
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
eval "$(rbenv init -)"
# The next line updates PATH for the Google Cloud SDK.
# if [ -f '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc' ]; then . '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc'; fi
if [ -f '/Users/einar/bin/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/einar/bin/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
# if [ -f '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc' ]; then . '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'; fi
if [ -f '/Users/einar/bin/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/einar/bin/google-cloud-sdk/completion.zsh.inc'; fi
eval "$(rbenv init -)"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion