-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
165 lines (111 loc) · 5.31 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Path to your oh-my-zsh installation.
# ------------------------------------------------------------------------------
export ZSH=${HOME}/.oh-my-zsh
export DOTFILES=${HOME}/.dotfiles
export FUNCTIONS=${DOTFILES}/oh-my-zsh/functions
# Set name of the theme to load.
# ------------------------------------------------------------------------------
# ZSH_THEME="boom"
ZSH_THEME="powerlevel10k/powerlevel10k"
export CLICOLOR=1
export TERM=xterm-256color
NVM_HOMEBREW=$(brew --prefix nvm)
zstyle ':omz:plugins:nvm' autoload true
# Would you like to use another custom folder than $ZSH/custom?
# ------------------------------------------------------------------------------
ZSH_CUSTOM=${DOTFILES}/oh-my-zsh
# Additional private configs
# ------------------------------------------------------------------------------
for file (${DOTFILES}/secure/*.zsh); source $file
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# ------------------------------------------------------------------------------
# Custom plugins may be added to ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(zsh-syntax-highlighting node nvm)
# Load Oh My Zsh
# ------------------------------------------------------------------------------
source $ZSH/oh-my-zsh.sh
# Brew Paths
# ------------------------------------------------------------------------------
local BREW_SQLITE_PATH=$(brew --prefix sqlite)
# User configuration
# ------------------------------------------------------------------------------
export PATH="/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:$PATH"
# Node
# ------------------------------------------------------------------------------
export PATH="$PATH:$HOME/.npm-packages/bin"
export PATH="$PATH:./node_modules/.bin"
export PATH="$HOME/.yarn/bin:$PATH"
# PHP
# ------------------------------------------------------------------------------
export PATH="/opt/homebrew/opt/php@8.1/bin:$PATH"
export PATH="/opt/homebrew/opt/php@8.1/sbin:$PATH"
export PATH="$PATH:./.vendor/bin:$PATH"
export PATH="$PATH:./vendor/bin"
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PATH="$PATH:./docker-containers/laravel/sail/bin"
# Flutter
# ------------------------------------------------------------------------------
export PATH="$PATH:$HOME/flutter/bin"
# Azure
# ------------------------------------------------------------------------------
# export PATH="$PATH:$HOME/.azure/bin:$PATH"
# Dotfile bin folder
# ------------------------------------------------------------------------------
export PATH="$DOTFILES/bin:$PATH"
# Android
# ------------------------------------------------------------------------------
export JAVA_HOME="/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home"
export ANDROID_HOME="$HOME/Library/Android/sdk"
export PATH="$PATH:$ANDROID_HOME/emulator"
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/tools/bin"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# sqlite3
# ------------------------------------------------------------------------------
export PATH="$BREW_SQLITE_PATH/bin:$PATH"
export LDFLAGS="-L$BREW_SQLITE_PATH/lib"
export CPPFLAGS="-I$BREW_SQLITE_PATH/include"
# export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"
# export PATH="/usr/local/opt/sqlite/bin:$PATH"
# export LDFLAGS="-L/usr/local/opt/sqlite/lib"
# export CPPFLAGS="-I/usr/local/opt/sqlite/include"
# export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"
# Ruby
# ------------------------------------------------------------------------------
# local READLINE_PATH=$(brew --prefix readline)
# local OPENSSL_PATH=$(brew --prefix openssl)
# # Use the OpenSSL from Homebrew instead of ruby-build
# # Note: the Homebrew version gets updated, the ruby-build version doesn't
# export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$OPENSSL_PATH --with-readline-dir=$READLINE_PATH"
# export RUBY_CONFIGURE_OPTS="--with-sqlite-dir=$SQLITE_PATH"
# # Place openssl@1.1 at the beginning of your PATH (preempt system libs)
# export PATH=$OPENSSL_PATH/bin:$PATH
eval "$(rbenv init - zsh)"
# Random
# ------------------------------------------------------------------------------
# After this list it's been added automatically --------------------------------
# pnpm
export PNPM_HOME="/Users/neil/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# bun completions
[ -s "/Users/neil/.bun/_bun" ] && source "/Users/neil/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ${DOTFILES}/p10k.zsh
# To customize prompt, run `p10k configure` or edit ~/.dotfiles/p10k.zsh.
[[ ! -f ~/.dotfiles/p10k.zsh ]] || source ~/.dotfiles/p10k.zsh
[ -f ~/.dotfiles/fzf.zsh ] && source ~/.dotfiles/fzf.zsh