# History
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory

# Basic settings
autoload bashcompinit && bashcompinit
autoload -U compinit; compinit
zstyle ':completion:*' menu select

# Prompt settings
autoload -Uz promptinit
promptinit
PROMPT_EOL_MARK=

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

### Custom Commands and Aliases ###

# Local bin PATH
export PATH="$HOME/.local/bin:$HOME/.local/scripts:$PATH"

# Fix for Ansible
export LC_ALL="C.UTF-8"

# AWS
complete -C '/usr/local/bin/aws_completer' aws

# Go puts binaries here
export PATH="$PATH:$(go env GOBIN):$(go env GOPATH)/bin"

# Calculate all folder sizes in current dir 
alias {dudir,dud}='du -h --max-depth 1 | sort -h'
# Calculate all file sizes in current dir
alias {dufile,duf}='ls -lhSr'
