1
0
Fork 0
env/.zshrc

53 lines
998 B
Bash
Raw Normal View History

2018-04-01 17:06:16 +08:00
# terminal settings
2018-10-09 20:36:55 +08:00
#export TERM=xterm-256color
2018-04-01 17:06:16 +08:00
# zsh settings
2018-10-10 21:48:14 +08:00
export SAVEHIST=10000
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-10-09 20:36:55 +08:00
autoload -U compinit; compinit
bindkey -v
# search
bindkey '^R' history-incremental-search-backward
2018-10-09 19:03:43 +08:00
# zsh imports
fpath=( ~/.zsh/functions $fpath )
2018-09-22 20:43:47 +08:00
# editor
export EDITOR=nvim
2018-04-02 12:40:37 +08:00
# pure
2018-10-09 20:36:55 +08:00
export PURE_PROMPT_SYMBOL='>'
export PURE_PROMPT_VICMD_SYMBOL='<'
2018-04-02 12:40:37 +08:00
autoload -U promptinit; promptinit
prompt pure
2018-09-22 20:43:47 +08:00
# autosuggestions
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
2018-10-09 19:03:43 +08:00
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=239'
export ZSH_AUTOSUGGEST_USE_ASYNC=true
bindkey '^e' autosuggest-accept
2018-09-22 20:43:47 +08:00
2018-04-02 23:05:10 +08:00
# thefuck
2018-10-09 19:03:43 +08:00
export PATH="$HOME/.local/bin:$PATH"
2018-04-02 23:05:10 +08:00
eval $(thefuck --alias nope)
2018-04-01 17:06:16 +08:00
# golang
export PATH="$(go env GOPATH)/bin:$PATH"
# aliases
alias vim=nvim