-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
146 lines (118 loc) · 4.13 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
# Profiling
# zmodload zsh/zprof
# assign TTY for GPG
export GPG_TTY=$(tty)
# 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
export ZSH=$HOME/.oh-my-zsh
export N_PREFIX=$HOME/.n
export GEM_HOME=$HOME/.gem
export CARGO_HOME=$HOME/.cargo
export FLUTTER_HOME=$HOME/sdks/flutter/
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LDFLAGS="-L$(brew --prefix openssl@3)/lib $(brew --prefix sqlite)/lib"
export CPPFLAGS="-L$(brew --prefix openssl@3)/include $(brew --prefix sqlite)/include"
# Postgresql
export LDFLAGS="-L/opt/homebrew/opt/postgresql@15/lib"
export CPPFLAGS="-I/opt/homebrew/opt/postgresql@15/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/postgresql@15/lib/pkgconfig"
export BUN_HOME=$HOME/.bun/
PATH=$N_PREFIX/bin:$GEM_HOME/bin:$BUN_HOME/bin:$(brew --prefix openssl@3)/bin:$(brew --prefix sqlite)/bin:$PATH:$CARGO_HOME/bin
PATH=$FLUTTER_HOME/bin:$PATH
PATH=$PATH:$HOME/Library/Android/sdk/platform-tools
export PATH
plugins=(
git
colored-man-pages
extract
sudo
tmux
docker
colorize
)
#zstyle ':omz:update' mode disabled
ZSH_DISABLE_COMPFIX=true
source $ZSH/oh-my-zsh.sh
# Pyenv setup
## eval "$(pyenv init -)"
# tmus auto start (skip interactive shell)
#case $- in *i*)
#if [ -z "$TMUX" ]
#then
# tmux attach -t TMUX || tmux new -s TMUX
#fi
#esac
# neovim
if type nvim > /dev/null 2>&1; then
alias vim='nvim'
alias vi='nvim'
alias oldvim='\vim'
fi
# zsh zsh-syntax-highlighting setup
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# zsh-autosuggestion setup
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# zsh autocomples setup
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
fi
# p10k theme
source ~/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# iTerm2 integration
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# fzf setup
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Google Cloud CLI
if [ -f $HOME/sdks/google-cloud-sdk/path.zsh.inc ]; then . $HOME/sdks/google-cloud-sdk/path.zsh.inc; fi
if [ -f $HOME/sdks/google-cloud-sdk/completion.zsh.inc ]; then . $HOME/sdks/google-cloud-sdk/completion.zsh.inc; fi
# autoload compdump at once
autoload -Uz compinit
for dump in ~/.zcompdump(N.mh+24); do
compinit
done
compinit -C
# aliases
alias python3.11=python
alias gitlog="git log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%an%C(reset)%C(bold yellow)%d%C(reset) %C(dim white)- %s%C(reset)' --all"
# Profiling end, run `time zsh -i -c exit` in CLI to measure
# zprof
. "$HOME/.cargo/env"
# Created by `pipx` on 2024-03-27 05:32:50
export PATH="$PATH:/Users/mpijittum/.local/bin"
source "/Users/mpijittum/.wasmedge/env"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/homebrew/Caskroom/miniconda/base/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then
. "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh"
else
export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
eval "$(conda "shell.$(basename "${SHELL}")" hook)"
conda activate python3.10
export PATH="/opt/homebrew/opt/postgresql@15/bin:$PATH"
# bun completions
[ -s "/Users/mpijittum/.bun/_bun" ] && source "/Users/mpijittum/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# pnpm
export PNPM_HOME="/Users/mpijittum/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end