-
Notifications
You must be signed in to change notification settings - Fork 5
/
.zshrc
64 lines (53 loc) · 2.19 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
# 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 PATH="/usr/local/opt/ruby/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:$HOME/bin:$PATH"
fpath+=~/.zfuunc
autoload -Uz compinit && compinit
export HISTSIZE=1000000
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(macos)
source $ZSH/oh-my-zsh.sh
for file in ~/.{exports,aliases,functions}; do
[ -r "$file" ] && source "$file"
done
unset file
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
if command -v rbenv 1>/dev/null 2>&1; then
eval "$(rbenv init -)"
fi
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && . "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
precmd() {
if [[ $PWD =~ .*/dev/caylent.*$ && -d .git ]]; then
git config --local user.name "Randall Hunt (Caylent)"
export GIT_COMMITTER_EMAIL="[email protected]"
export GIT_AUTHOR_EMAIL="[email protected]"
else
unset GIT_COMMITTER_EMAIL
unset GIT_AUTHOR_EMAIL
fi
}
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
eval "$(jump shell)"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
function toggle-right-prompt() { p10k display '*/right'=hide,show; }
zle -N toggle-right-prompt
bindkey '^P' toggle-right-prompt
# Created by `pipx` on 2021-06-07 20:11:31
export PATH="$PATH:/Users/ranman/.local/bin"
export PIPENV_VENV_IN_PROJECT=1
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export PUPPETEER_EXECUTABLE_PATH=`which chromium`
eval "$(pyenv init -)"
export PATH="$HOME/.poetry/bin:$PATH"