-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
72 lines (56 loc) · 1.72 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
# Add Homebrew to path
path=('/opt/homebrew/bin' $path)
# Path to your oh-my-zsh installation.
export ZSH="/Users/daksh/.oh-my-zsh"
# Add the path of cloned pure prompt
fpath+=$HOME/.zsh/pure
# Key bindings and fuzzy completion for fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Set name of the theme to load
ZSH_THEME=""
# Load Oh My Zsh plugins
plugins=(
git
brew
zoxide
zsh-autosuggestions
zsh-syntax-highlighting
history-substring-search
)
# Load Oh My Zsh
source $ZSH/oh-my-zsh.sh
# Load gcloud CLI
source "$(brew --prefix)/share/google-cloud-sdk/path.zsh.inc"
source "$(brew --prefix)/share/google-cloud-sdk/completion.zsh.inc"
# User configuration
# Pure prompt
# See https://github.com/sindresorhus/pure
autoload -U promptinit; promptinit
prompt pure
# Make GPG signing work correctly
export GPG_TTY=$(tty)
# You may need to manually set your language environment
export LANG=en_US.UTF-8
# This speeds up pasting w/ autosuggest
# https://github.com/zsh-users/zsh-autosuggestions/issues/238
pasteinit() {
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]}
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?
}
pastefinish() {
zle -N self-insert $OLD_SELF_INSERT
}
zstyle :bracketed-paste-magic paste-init pasteinit
zstyle :bracketed-paste-magic paste-finish pastefinish
# Init pyenv
eval "$(pyenv init -)"
# pnpm
export PNPM_HOME="/Users/daksh/Library/pnpm"
# pnpm end
# android
export ANDROID_HOME="/Users/daksh/Library/Android/sdk"
export ANDROID_SDK_ROOT="/Users/daksh/Library/Android/sdk"
# export path with pnpm and android platform tools
export PATH="$ANDROID_HOME/platform-tools:$PNPM_HOME:$PATH"
# psql
export PATH="/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH"