-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
86 lines (71 loc) · 2.17 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
fpath=($HOME/.zsh/zsh-completions/src $fpath)
autoload bashcompinit && bashcompinit
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' menu select
autoload -Uz compinit && compinit
complete -C aws_completer aws
source /usr/share/powerline/bindings/zsh/powerline.zsh
autoload -Uz colors && colors
eval "$(dircolors -b)"
stty stop undef
setopt autocd interactivecomments histignorealldups sharehistory
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
bindkey -d
bindkey -e
bindkey '\e[1~' beginning-of-line
bindkey '\e[H' beginning-of-line
bindkey '\e[7~' beginning-of-line
bindkey '\e[4~' end-of-line
bindkey '\e[F' end-of-line
bindkey '\e[8~' end-of-line
bindkey '\e[3~' delete-char
umask 0022
export EDITOR=vim
export HISTFILE=~/.zsh_history
export HISTSIZE=100000
export MAIL=/var/spool/mail/$USER
export MAILCHECK=10
export PAGER='less -R'
export PATH="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$HOME/bin:$HOME/.local/bin"
export PYTHONDONTWRITEBYTECODE=1
export SAVEHIST=100000
if [[ $XDG_SESSION_TYPE == x11 ]]; then
xset b off
xset r rate 150 100
fi
# general
alias bc='bc -l'
alias egrep='egrep --color=auto --binary-files=without-match --exclude-dir=.svn --exclude-dir=.git'
alias grep='grep --color=auto --binary-files=without-match --exclude-dir=.svn --exclude-dir=.git'
alias ls='ls -F --color=auto'
alias ll='ls -laF --color=auto'
# git
alias ga='git add'
alias gb='git branch -vv'
alias gc='git clone'
alias gci='git commit'
alias gco='git checkout'
alias gd='git diff'
alias gdc='git diff --cached'
alias gg='git log --all --decorate=full --stat --graph'
alias gl='git log --decorate=full --oneline'
alias glr='git ls-remote'
alias gm='git merge'
alias gp='git pull'
alias gr='git rebase'
alias gri='git rebase -i'
alias gs='git status -sb'
alias gst='git status'
# sca
alias sc='shellcheck --format=gcc --enable=all --exclude=SC1090,SC1091,SC2250,SC2312,SC3043'
alias sf='shfmt -i 2 -ci -s'
pc() {
flake8 --ignore E501 "$@"
pylint --confidence=HIGH --disable=C "$@"
}
alias pf='black'
# terraform
alias tf='terraform'
alias tfa='terraform apply'
alias tfi='terraform init'
alias tfp='terraform plan'