2018-04-01 17:06:16 +08:00
|
|
|
|
2018-04-02 22:25:33 +08:00
|
|
|
# terminal settings
|
|
|
|
export TERM=xterm-256color
|
|
|
|
|
2018-04-01 17:06:16 +08:00
|
|
|
# zsh settings
|
2018-04-02 22:25:33 +08:00
|
|
|
export SAVEHIST=1000
|
|
|
|
export HISTFILE=~/.zsh_history
|
2018-04-02 22:10:30 +08:00
|
|
|
setopt append_history
|
|
|
|
setopt extended_history
|
|
|
|
setopt share_history
|
|
|
|
setopt histignorespace
|
|
|
|
setopt longlistjobs
|
|
|
|
setopt notify
|
|
|
|
setopt completeinword
|
|
|
|
setopt noshwordsplit
|
|
|
|
setopt auto_cd
|
|
|
|
setopt interactivecomments
|
|
|
|
setopt extended_glob
|
2018-04-01 17:06:16 +08:00
|
|
|
|
2018-09-22 20:43:47 +08:00
|
|
|
# editor
|
|
|
|
export EDITOR=nvim
|
|
|
|
|
2018-04-02 12:40:37 +08:00
|
|
|
# pure
|
|
|
|
autoload -U promptinit; promptinit
|
|
|
|
prompt pure
|
|
|
|
|
2018-09-22 20:43:47 +08:00
|
|
|
# autosuggestions
|
|
|
|
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
|
|
|
2018-04-02 23:05:10 +08:00
|
|
|
# thefuck
|
|
|
|
eval $(thefuck --alias nope)
|
|
|
|
|
2018-04-01 17:06:16 +08:00
|
|
|
# golang
|
|
|
|
export PATH="$(go env GOPATH)/bin:$PATH"
|
|
|
|
|
|
|
|
# aliases
|
|
|
|
alias vim=nvim
|
|
|
|
|