-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
67 lines (49 loc) · 1.55 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
ZSH_THEME="simple" # set by `omz`
# Zsh plugins
plugins=(git)
# Path to your oh-my-zsh installation.
export ZSH="/Users/henry/.oh-my-zsh"
# source oh-my-zsh
source $ZSH/oh-my-zsh.sh
export ZSH_THEME=simple
# Default editor
export EDITOR=/opt/homebrew/bin/nvim
# Homebre
eval "$(/opt/homebrew/bin/brew shellenv)"
# Path to libs and includes for homebrew
export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib
export DYLD_LIBRARY_PATH=/opt/homebrew/lib
# Personal scripts
export PATH=$PATH:~/.local/bin
# Go to personal scripts dir
function bins() { cd ~/.local/bin }
# Go to config dir
function config() { cd ~/.config }
# Be sure locale is utf8
export LANG=en_US.UTF-8
# Source aliases
[[ -f ~/.bash_aliases ]] && . ~/.bash_aliases
# Disable ctrl-s to freeze terminal.
stty stop undef
# Java
export PATH="/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin:$PATH"
# rbenv
eval "$(rbenv init - zsh)"
# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
# Go
export GOPATH="$(go env GOPATH)"
export PATH="${PATH}:${GOPATH}/bin"
# Solve <C-y> issues on MacOS
stty dsusp undef
# FZF utils
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Postgres
export PATH="/opt/homebrew/opt/postgresql@15/bin:$PATH"
# LLVM bins
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
# LaTeX classes
export TEXINPUTS=:/Users/henry/Notes/classes