-
Notifications
You must be signed in to change notification settings - Fork 80
/
.zshrc
39 lines (29 loc) · 1.32 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
eval $(dircolors -b $HOME/.dircolors)
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
ZSH_THEME="ys"
plugins=(git git-extras yarn zsh-completions zsh-syntax-highlighting autojump command-not-found colored-man-pages colorize common-aliases)
autoload -Uz compinit && compinit
export ZSH_DISABLE_COMPFIX=true
export ZSH_COLORIZE_CHROMA_FORMATTER=terminal256
alias ls="ls --color=tty 2>/dev/null"
unsetopt BG_NICE
export PYTHONDONTWRITEBYTECODE=1
bindkey '^]' autosuggest-accept
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
eval $(thefuck --alias)
alias jp='cd ..'
alias sw='swatch -l'
alias gitsub='git submodule update --init --recursive'
proxy_on () { export https_proxy=61.160.210.234:808; }
proxy_off () { export https_proxy=''; }
vidres () { ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 $1 }
vidnframe () { ffmpeg -i $1 -vcodec copy -f rawvideo -y /dev/null 2>&1 | tr ^M '\n' | awk '/^frame=/ {print $2}' | tail -n 1 }
lswc () { ls | wc -l }
export JULIA_NUM_THREADS=`nproc`
export ZZROOT=$HOME/app
export PATH=$ZZROOT/bin:$PATH
export LD_LIBRARY_PATH=$ZZROOT/lib:$ZZROOT/lib64:$LD_LIBRARY_PATH
export ZZROOT=$HOME/app
export JLROOT=$ZZROOT/jl
export PATH=$ZZROOT/bin:$JLROOT/bin:$PATH
export LD_LIBRARY_PATH=$ZZROOT/lib:$ZZROOT/lib64:$JLROOT/lib:$JLROOT/lib64:$LD_LIBRARY_PATH