# git display, add ${vcs_info_msg_0_} to PROMPT
#autoload -Uz vcs_info
#zstyle ':vcs_info:*' enable git svn
#precmd() {
#    vcs_info
#}

export CLICOLOR=1
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
export TERM=xterm-256color

# prompt format and color
PROMPT='%B%F{136}%n@%m%f%b %F{039}%.%f ❯ '
#PROMPT='%B%F{002}%m%f%b:%F{039}%.%f %F{039}❯%f '

# autocompletion case insensitivity
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
autoload -Uz compinit && compinit -i

# plugins
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# print all 256 color numbers to use in {}:
# for code in {000..255}; do print -P -- "$code: %F{$code}Color%f"; done

# write a history file
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt SHARE_HISTORY
setopt HIST_IGNORE_SPACE

alias ls='ls --color=auto'
alias grep='grep --color=auto'

#alias data="cd /volumes/data"
#alias proj="cd /volumes/data/Data/Projects"

# enable jumping by words with ctrl+arrow keys
#bindkey ";5C" forward-word
#bindkey ";5D" backward-word

bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word

