-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
78 lines (56 loc) · 2.2 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
[[ -v ZEBUG ]] && zmodload zsh/zprof
export ZSH="$HOME/.oh-my-zsh"
zstyle ':omz:update' mode auto # update automatically without asking
zstyle ':omz:update' frequency 7
COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
plugins=(git)
source $ZSH/oh-my-zsh.sh
# $PATH
export PATH="$PATH:/Users/sean/.local/bin"
export PATH="$PATH:/Users/prometheus/.local/bin"
export PATH="$HOME/.poetry/bin:$PATH"
export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"
export PATH="$(brew --prefix sqlite)/bin:${PATH}"
# evals
eval "$(/opt/homebrew/bin/brew shellenv)"
eval "$(zoxide init zsh)"
command -v direnv &> /dev/null && eval "$(direnv hook zsh)"
# todo this doesn't work on personal
eval "$(gh copilot alias -- zsh)"
# pyenv init
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv &> /dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
command -v virtualenvwrapper_lazy.sh &> /dev/null && pyenv virtualenvwrapper_lazy
eval "$(_SQLITE_UTILS_COMPLETE=zsh_source sqlite-utils)"
# utils
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# ENV utils
export LOCAL_IP=$(ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}')
# Aliases
alias lg="lazygit"
alias dkr="docker"
# https://github.com/pyenv/pyenv#homebrew-in-macos
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
alias ztime='time zsh -i -c exit'
alias zconf='vim ~/.zshrc'
alias zload='exec zsh'
alias vim='nvim'
alias vconf='nvim ~/.config/nvim/'
alias vvim='/usr/bin/vim'
eval "$(starship init zsh)"
[[ -v ZEBUG ]] && zprof
# Herd injected PHP 8.3 configuration.
export HERD_PHP_83_INI_SCAN_DIR="/Users/prometheus/Library/Application Support/Herd/config/php/83/"
# Herd injected PHP binary.
export PATH="/Users/prometheus/Library/Application Support/Herd/bin/":$PATH
source $HOMEBREW_PREFIX/opt/chruby/share/chruby/chruby.sh
chruby 3
export PATH="$(brew --prefix sqlite)/bin:${PATH}"