-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
71 lines (56 loc) · 1.65 KB
/
Copy pathzshrc
File metadata and controls
71 lines (56 loc) · 1.65 KB
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
export LANG="en_US.UTF-8"
# oh-my-zsh
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git docker docker-compose kubectl)
source $ZSH/oh-my-zsh.sh
# homebrew
if [[ $(uname -p) == "arm" ]]; then
BIN_PATH="/opt/homebrew/bin"
else
BIN_PATH="/usr/local/bin"
fi
eval "$($BIN_PATH/brew shellenv)"
# starship
eval "$(starship init zsh)"
# fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# z
. ~/z.sh
# claude code
export PATH="$HOME/.local/bin:$PATH"
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# gcloud
source "$(brew --prefix)/share/google-cloud-sdk/path.zsh.inc"
source "$(brew --prefix)/share/google-cloud-sdk/completion.zsh.inc"
# Mole shell completion
if output="$(mole completion zsh 2>/dev/null)"; then eval "$output"; fi
if [[ "$PYTHON_INSTALLED" = true ]]; then
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# pyenv-virtualenvwrapper
export PYENV_VIRTUALENVWRAPPER_PREFER_PYENV="true"
export WORKON_HOME=$HOME/.virtualenvs
pyenv virtualenvwrapper_lazy
# poetry
export PATH="$HOME/.local/bin:$PATH"
fi
if [[ "$RUBY_INSTALLED" = true ]]; then
# ruby
source $(brew --prefix)/opt/chruby/share/chruby/chruby.sh
source $(brew --prefix)/opt/chruby/share/chruby/auto.sh
chruby 3.3.0
fi
# aliases
alias cat=bat
alias vim=nvim
alias lg=lazygit
alias ls="eza --icons -F -H --group-directories-first --git"
# set default editor
export EDITOR=vim
export VISUAL=vim