-
Notifications
You must be signed in to change notification settings - Fork 20
/
.zshrc
84 lines (63 loc) · 2.18 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
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# This is a workaround for having a system node and NVM node
PATH="/usr/local/bin:$(getconf PATH)"
# Use gnu-sed instead of MacOS's sed
PATH="/usr/local/opt/sed/libexec/gnubin:$PATH"
GOPATH="$HOME/go"
GOROOT="/usr/local/opt/go/libexec"
GOBIN="$GOPATH/bin"
PATH="$PATH:$GOPATH"
PATH="$PATH:$GOROOT/bin"
PATH="$PATH:$GOBIN"
# Add brew to path
export PATH=/opt/homebrew/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/${USER}/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="spaceship"
# Disable bi-weekly auto-update checks.
DISABLE_AUTO_UPDATE="true"
# How often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
z
git
osx
chucknorris # ¯\_(ツ)_/¯
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# ssh
export SSH_KEY_PATH="~/.ssh/rsa_id"
# Load aliases
if [ -f ~/.aliases ]; then
. ~/.aliases
fi
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
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
# Set Node's max heap size to 4096
export NODE_OPTIONS=" --max_old_space_size=4096"
# Add cargo to the PATH
source $HOME/.cargo/env
# Use nvim as the default editor
export EDITOR=nvim