#!/bin/zsh

# Skip settings if unsupported
[[ "$TERM" == 'dumb' ]] && return 1

# Set case-sensitivity for completion, history lookup, etc.
zstyle ':prezto:*:*' case-sensitive false

# Enable VCS systems you want supported in PS1 prompt, or 'none'
zstyle ':vcs_info:*' enable bzr git hg svn

# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' key-bindings 'emacs'

# The search paths for the cd command, add your Projects dir etc.
cdpath=(~ ~/Projects)

# Source common aliases
[[ -e ~/.bash_aliases ]] && source ~/.bash_aliases

# Source local modules
for module in ~/.config/zsh/*.zsh; do source "$module"; done

# Run `prompt -h debwin` for help, `prompt -p` to preview other prompts
prompt debwin

# Have less output "raw" control characters
export PAGER='less' LESS='-R' # LESSOPEN='| /usr/share/source-highlight/src-hilite-lesspipe.sh %s'

# Print a nice quote at start of session
[ "$(command -v fortune)" ] && fortune -es wisdom platitudes people computers fortunes debian paradoxum science goedel law linux |
{ cowsay -f $(shuf -en1 apt bud-frogs cock cower default duck elephant kitty koala moose sheep snowman sodomized-sheep three-eyes tux unipony-smaller) 2>/dev/null || cat; }
echo "Current time: $(date --rfc-3339=seconds)"
