-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
69 lines (51 loc) · 2.22 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
source ~/dotfiles.helper.sh
echo "${MESSAGE_PREFIX} Initialising..."
ZSH_DISABLE_COMPFIX=true
plugins=(
git
zsh-better-npm-completion
zsh-syntax-highlighting
)
COMPLETION_WAITING_DOTS="true"
ZSH_THEME="avit"
# https://github.com/Homebrew/homebrew-core/commit/f710a1395f44224e4bcc3518ee9c13a0dc850be1#diff-3e84bae646d908b93e043833873d316dL16
# https://github.com/ohmyzsh/ohmyzsh/issues/7459#issuecomment-542786200
zstyle ':completion:*:*:git:*' script /usr/local/etc/bash_completion.d/git-completion.bash
fpath=(/usr/local/share/zsh/site-functions $fpath)
export ZSH=$HOME/.oh-my-zsh
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:~/.oh-my-zsh"
export NODE_ENV=development
export NVM_DIR="$HOME/.nvm"
# https://stackoverflow.com/a/9810485
__git_files () {
_wanted files expl 'local files' _files
}
source $ZSH/oh-my-zsh.sh
source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Kubernetes autocomplete
source <(kubectl completion zsh)
# TODO: https://gist.github.com/ctechols/ca1035271ad134841284
autoload -Uz compinit && compinit -i
# todo:
# add check for when last pull was from git, if greater than whatever
# pull into dotfiles repo and run update/init after this
# https://github.com/jez/dotfiles/blob/master/util/auto-update.sh
# https://stackoverflow.com/questions/2993902/how-do-i-check-the-date-and-time-of-the-latest-git-pull-that-was-executed#comment48416885_9229377
source ~/.functions.sh
source ~/.aliases.sh
echo "${MESSAGE_PREFIX} Setting up work specific settings..."
source ~/work-specific/congenica.secrets.sh
source ~/work-specific/congenica.sh
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
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
export PATH="/usr/local/opt/postgresql@9.6/bin:$PATH"
export PGDATA="/usr/local/var/postgresql@9.6"
export PATH="$PATH:$HOME/.bin/sonar-scanner/bin"
export PATH="$PATH:$HOME/.bin"
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"