Created
March 8, 2018 01:16
-
-
Save nicot/a2e1f868f0b179b383f9b73442aec859 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -U compinit promptinit colors | |
colors | |
compinit | |
promptinit | |
bindkey -e | |
setopt HIST_IGNORE_ALL_DUPS | |
setopt HIST_IGNORE_SPACE | |
setopt INC_APPEND_HISTORY | |
setopt SHARE_HISTORY | |
export HISTSIZE=100000 | |
export SAVEHIST=$HISTSIZE | |
export HISTFILE=$HOME/.zhistory | |
setopt INTERACTIVECOMMENTS | |
setopt COMPLETEALIASES | |
setopt RM_STAR_SILENT | |
setopt NOCASEMATCH | |
setopt EXTENDED_GLOB | |
typeset -U path | |
path=($HOME/bin $path) | |
[[ "$(uname)" == "Darwin" ]] && path=(/usr/local/bin $path) | |
PROMPT="%(?..%{%B%F{red}%}[%?] )%{%b%F{black}%}%n@%U%m%u>%{%f%} %{%F{blue}%}" | |
RPROMPT="%{%F%}%~%{%f%}" | |
preexec () { echo -ne "$reset_color" } # Color output differently | |
zstyle ':completion:*' matcher-list '' 'm:{a-z\-}={A-Z\_}' | |
case $TERM in | |
rxvt*|*term) | |
precmd() { print -Pn "\e]0;%m:%~\a" } | |
preexec () { echo -ne "$reset_color"; print -Pn "\e]0;$1\a" } | |
;; | |
esac | |
export EDITOR=nvim | |
alias e="nvim" | |
source ~/.fzf.zsh | |
export FZF_DEFAULT_OPTS=--exact | |
# New stuff | |
WORDCHARS='*?_-[]~=&;!#$%^(){}<>' | |
fpath=(path/to/zsh-completions/src $fpath) | |
[[ -a $HOME/.profile.local ]] && source $HOME/.profile.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment