-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
134 lines (117 loc) · 4.07 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# 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 ZSH=$HOME/.oh-my-zsh
export TERMINFO=/usr/share/terminfo # Backspace in Python (through minconda)
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
export VAGRANT_TYPE=abacus-abahost
export NB_MINIONS=1
CASE_SENSITIVE="false"
source $ZSH/oh-my-zsh.sh
source "$HOME/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme"
source "$HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
source "$HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
source /usr/share/autojump/autojump.zsh
ZSH_THEME="powerlevel10k/powerlevel10k"
# ORDER
DISABLE_AUTO_UPDATE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
plugins=(
git
colorize
copydir
django
)
typeset -gA ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=orange,bold'
ZSH_HIGHLIGHT_STYLES[builtin]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[function]='fg=blue,bold'
ZSH_HIGHLIGHT_STYLES[command]='fg=yellow,bold'
ZSH_HIGHLIGHT_STYLES[precommand]='fg=green, bold'
ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=green'
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=6'
bindkey '^ ' autosuggest-toggle
export LANG=en_US.UTF-8
#alias cat="colorize"
alias cpd="copydir"
alias l="ls"
alias ll="ls -l"
alias la="ls -la"
alias pmr="python manage.py runserver"
alias pms="python manage.py shell"
alias pmm="python manage.py makemigrations"
alias pmi="python manage.py migrate"
alias pmt="python manage.py test"
alias jup="j polyticket"
alias jd="j deeppoint"
alias jj="j justsearch-frontend"
alias ja="j abahost"
alias jg="j arcanite_gestion"
alias gd="git diff | egrep 'console.log|print\('"
alias gc="git checkout"
alias update_code="wget -O code.deb https://code.visualstudio.com/sha/download\?build\=stable\&os\=linux-deb-x64 && sudo dpkg -i code.deb && rm code.deb"
xpwd() {
pwd | xclip -selection clipboard
}
gall() {
git add .
git commit -a -m"$1"
git push
}
manage() {
python manage.py $1
}
dotup() {
./mngDotF.sh
git add .
git commit -m "sync"
git push origin master
}
gsvcred() {
git config --global credential.helper 'cache --timeout=36000'
}
cpr() {
rsync -ahr --info=progress2 $1 $2
}
jp() {
j polyticket
tilix -a session-add-down -x "mailhog"
tilix -a session-add-down -x "stripe listen --forward-to localhost:8000/api/v1/modules_payments/stripe/webhooks/"
pmr
}
gpull() {
git pull origin $(git branch --show-current)
}
#fpath=($fpath "$HOME/.zfunctions")
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/steven/.config/composer/vendor/bin:/home/steven/.scc/scc.py:/home/steven/.npm-global/bin:$HOME/.local/bin:$HOME/bin:/snap/bin"
alias scc='/home/steven/.scc/scc.py'
alias dotFiles='/usr/bin/git --git-dir=$HOME/.dotFiles/ --work-tree=$HOME'
fpath=(~/Documents/cheatsheets/ $fpath)
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('$HOME/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "$HOME/miniconda3/etc/profile.d/conda.sh" ]; then
. "$HOME/miniconda3/etc/profile.d/conda.sh"
else
export PATH="$HOME/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
source /opt/conda_auto_env/conda_auto_env.sh
autoload -U add-zsh-book
autoload -U compinit && compinit
add-zsh-hook chpwd conda_auto_env
zstyle ':completion:*' list-suffixes
zstyle ':completion:*' expand prefix suffix
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh