HISTFILE="$HOME/.zsh_history" HISTSIZE=10000000 SAVEHIST=10000000 autoload -U compinit promptinit promptinit compinit zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*' fpath=(/usr/local/share/zsh-completions $fpath) function git_branch_name() { branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}') if [[ $branch == "" ]]; then : else echo '('$branch')' fi } # Enable substitution in the prompt. setopt prompt_subst PROMPT='%F{051}%n%f %F{120}%~%f %F{050}$(git_branch_name)%f %F{120}=>%f ' bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word bindkey '\e[1~' beginning-of-line bindkey '\e[4~' end-of-line bindkey '\e[3~' delete-char ######################### nvim and ls aliases ######################### alias vim='nvim' alias ls='ls --color=auto' alias ll='ls -la' ######################### grep aliases ######################### alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh