-
Notifications
You must be signed in to change notification settings - Fork 1
/
zshrc
55 lines (41 loc) · 1.51 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
export ZSH=$HOME/.oh-my-zsh
if [[ "$OSTYPE" == "darwin"* ]]; then
export UPDATE_ZSH_DAYS=10
eval "$(/opt/homebrew/bin/brew shellenv)" # homebrew
else
DISABLE_AUTO_UPDATE="true"
fi
# zsh stuff
COMPLETION_WAITING_DOTS="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
ZSH_THEME=""
DIR_DEV="$HOME/dev"
DIR_DOTFILES="$DIR_DEV/dotfiles"
DIR_DOTFILES_PRIVATE="$DIR_DEV/dotfiles-private"
# User configuration
export LANG=en_US.UTF-8
export SSH_KEY_PATH="~/.ssh/id_ed25519"
plugins=(git zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
# source remaining files
source "$DIR_DOTFILES/zsh/alias.sh" # this needs to be the first
source "$DIR_DOTFILES/zsh/prompt.sh"
source "$DIR_DOTFILES/zsh/play.sh" # all play 🎮⛏
source "$DIR_DOTFILES/zsh/shell-functions.sh"
test -f "$DIR_DOTFILES/zsh/private/work.sh" && source "$DIR_DOTFILES/zsh/private/work.sh"
[ -f "$DIR_DOTFILES_PRIVATE/entry.sh" ] && source "$DIR_DOTFILES_PRIVATE/entry.sh" || false
# other exports
export EDITOR=vim # use vim for git
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/ruby/bin:/$HOME/.gem/ruby/2.6.0/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="/opt/homebrew/opt/mongodb-community@4.4/bin:$PATH"
# deno
export DENO_INSTALL="$HOME/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
# jenv
# export PATH="$HOME/.jenv/bin:$PATH"
# eval "$(jenv init -)"
unset DIR_DEV DIR_DOTFILES