-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
72 lines (48 loc) · 1.55 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
## PNPM
export PNPM_HOME="$HOME/.local/share/pnpm/"
source /usr/share/nvm/init-nvm.sh
## END PNPM
## PATH
export GO_ROOT="$HOME/go"
export PATH="$HOME/.cargo/bin/:$PATH"
export PATH="$GO_ROOT/bin/:$PATH"
## END PATH
zstyle ':completion:*' completer _expand _complete _ignored _approximate
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}'
zstyle ':completion:*' verbose true
HISTFILE=~/.history
HISTSIZE=5000
SAVEHIST=1000
setopt autocd extendedglob nomatch
unsetopt beep notify
bindkey -e
bindkey "^[[1;5D" backward-word
bindkey "^[[1;5C" forward-word
bindkey "^[[3~" delete-char # delete
bindkey "^[[3;5~" kill-word # ctrl + delete
# ALIASES
alias sudo='nocorrect sudo -E '
alias vim='nocorrect nvim'
alias g='git'
alias gs='git status'
alias gc='git commit'
alias ga='git add'
alias gp='git push'
alias icat='kitty +kitten icat'
alias ls="nocorrect exa"
alias ll="ls -l"
alias la="ls -la"
alias ssh="TERM=xterm-kitty ssh"
alias rm="nocorrect echo Sorry mate, use \'trash-put\'"
alias ocr="flameshot gui -s -r > /tmp/ocr && tesseract -l eng /tmp/ocr /tmp/ocr_out && cat /tmp/ocr_out.txt; \\rm /tmp/ocr; \\rm /tmp/ocr_out.txt"
alias proj='source $HOME/.script/cd_project.sh'
# END ALIASES
# source antidote
source '/usr/share/zsh-antidote/antidote.zsh'
#source ${ZDOTDIR:-~}/.antidote/antidote.zsh
## PLUGIN CONFIG
# you-should-use hardcore mode
export YSU_HARDCORE=1
# initialize plugins statically with ${ZDOTDIR:-~}/.zsh_plugins.txt
antidote load
eval "$(starship init zsh)"