-
Notifications
You must be signed in to change notification settings - Fork 7
/
.zshrc
executable file
·106 lines (76 loc) · 2.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
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
#!/usr/bin/sh
ZSH_DISABLE_COMPFIX="true"
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# MacVim as Default editor
export EDITOR=vim
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="pongstr"
# Set to this to use case-sensitive completion
CASE_SENSITIVE="true"
# Uncomment this to disable bi-weekly auto-update checks
DISABLE_AUTO_UPDATE="false"
# Uncomment to change how often before auto-updates occur? (in days)
export UPDATE_ZSH_DAYS=10
# Uncomment following line if you want to disable autosetting terminal title.
DISABLE_AUTO_TITLE="true"
# Enable PyEnv shims and autocompletion
eval "$(/opt/homebrew/bin/brew shellenv)"
export PYENV_ROOT="$HOME/.pyenv/bin"
export PATH="$PYENV_ROOT/bin:$PATH"
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
# Enable Nodenv shims and autocompletion
if which nodenv > /dev/null; then eval "$(nodenv init -)"; fi
export PATH="$HOME/.nodenv/bin:$PATH"
# 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)
plugins=(
git
iterm2
node
pip
pyenv
python
)
source $ZSH/oh-my-zsh.sh
# Aliases
# -----------------------------------------------------------------------------
alias zsconf=''
alias zshome=''
alias zsclear=''
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ll='ls -lsa'
alias hh='history'
alias dirs='dirs -v'
alias push='pushd'
alias pop='popd'
alias projects='$HOME/Projects'
alias github='$HOME/Projects/github'
alias npmlist='npm list -g --depth=0 2>/dev/null'
alias npmclean='find . -name "node_modules" -type d -prune -exec rm -rf '{}' +'
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
eval "$(/opt/homebrew/bin/brew shellenv)"
# Configs
# -----------------------------------------------------------------------------
# pnpm
export PNPM_HOME="$HOME/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# GPG
export GPG_TTY=$(tty)
# Iterm Integration
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
export PATH="$PATH:/Applications/Docker.app/Contents/Resources/bin/"
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
export PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"
eval "$(oh-my-posh init zsh --config $(brew --prefix oh-my-posh)/themes/aliens.omp.json)"