2017-05-03 13:10:13 +00:00
|
|
|
# Basic zsh configuration
|
|
|
|
# vim: ft=zsh
|
|
|
|
|
|
|
|
# Custom completion
|
|
|
|
fpath=( /etc/zsh/completion $fpath )
|
|
|
|
|
|
|
|
# Completion
|
|
|
|
setopt noautomenu nomenucomplete
|
|
|
|
|
|
|
|
# Interactive comments
|
|
|
|
setopt interactive_comments
|
|
|
|
|
|
|
|
# Disable autocd
|
|
|
|
unsetopt autocd
|
|
|
|
|
|
|
|
# Command completion
|
|
|
|
autoload -U compinit
|
|
|
|
compinit
|
|
|
|
|
|
|
|
# Complete dotfiles
|
|
|
|
_comp_options+=( globdots )
|
|
|
|
|
|
|
|
# History
|
|
|
|
HISTFILE=~/.zsh_history
|
|
|
|
SAVEHIST=9001
|
|
|
|
HISTSIZE=9001
|
|
|
|
HISTCONTROL=erasedups
|
|
|
|
HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S"
|
|
|
|
|
|
|
|
# Fix retarded things
|
|
|
|
NULLCMD=true
|
|
|
|
READNULLCMD=true
|
|
|
|
|
|
|
|
# Locale
|
|
|
|
export LC_ALL='en_US.UTF-8'
|
|
|
|
|
|
|
|
# dotfiles config
|
|
|
|
dotfiles_dir="$HOME/git/dotfiles"
|
|
|
|
|
|
|
|
# PATH
|
2017-05-03 13:13:50 +00:00
|
|
|
set_misc_path \
|
|
|
|
"$HOME/.config/alternatives" \
|
2017-06-13 13:00:15 +00:00
|
|
|
"$HOME/.rvm/bin" \
|
|
|
|
"$HOME/games/bin" \
|
2017-05-03 13:13:50 +00:00
|
|
|
"$HOME/.local/bin" \
|
|
|
|
"$HOME/.nails/bin"
|
2017-05-03 13:10:13 +00:00
|
|
|
|
|
|
|
# GPG
|
|
|
|
GPG_TTY=$(tty)
|
|
|
|
export GPG_TTY
|
|
|
|
|
|
|
|
# EDITOR
|
2017-05-03 13:13:50 +00:00
|
|
|
export EDITOR=vim
|