-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
executable file
·96 lines (73 loc) · 2.8 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
powerline-daemon -q
source /usr/local/Cellar/antigen/2.2.3/share/antigen/antigen.zsh
export TERM="xterm-256color"
source /opt/homebrew/share/antigen/antigen.zsh
source "/opt/homebrew/opt/spaceship/spaceship.zsh"
powerline-daemon -q
source /usr/lib/python3.7/site-packages/powerline/bindings/zsh/powerline.zsh
# export POWERLEVEL9K_INSTALLATION_PATH=~/.antigen/bundles/bhilburn/powerlevel9k
# POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs)
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(virtualenv status root_indicator background_jobs history time)
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle sudo
antigen bundle pip
antigen bundle command-not-found
antigen bundle extract
antigen bundle z
antigen bundle django
antigen bundle virtualenv
antigen bundle pip
antigen bundle heroku
antigen bundle agkozak/zsh-z
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle steven-omaha/aurman-zsh-completion
# Zsh autosuggestions
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle clvv/fasd
antigen bundle poetry
# Load the theme.
DEFAULT_USER=`whoami`
# Virtualenv Wrapper
export WORKON_HOME=$HOME/.virtualenvs
# export PROJECT_HOME=$HOME/Projects
# export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python
# export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages -p python'
## =============================================================================
## Aliases
## =============================================================================
## ===================== System ================================================
alias rf="rm -rf"
alias google-chrome="google-chrome-stable"
## ===================== Git ===================================================
alias gi="git init"
alias gs="git status"
alias gd="git diff"
alias gdh="git diff HEAD"
alias gc="git commit -m "$1""
alias gaa="git add -A ."
alias gpo="git push origin $1"
alias gl="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias glo="git log --oneline"
alias grhh="git reset --hard HEAD"
alias gcp="git cherry-pick $1"
## ===================== Django ===================================================
alias pm="python manage.py"
alias pmrs="python manage.py runserver_plus 0.0.0.0:8000"
alias pmm="python manage.py migrate"
alias pmmm="python manage.py makemigrations"
alias pmsh="python manage.py shell_plus"
alias lg="lazygit"
alias ld='lazydocker'
alias ls='exa'
alias p='poetry run'
alias pp='poetry run python'
alias t='poetry run task'
# Tell antigen that you're done.
antigen apply
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"