dotfiles/zsh/zshenv
James Patrick 3b54637ca7 Adding basic zsh configuration.
At this point the following doesn't work.

- prompt
- history
- most autocomplete

Additionally with the tmux script getting loaded zplug we are getting a double
render issue, which is increasing the start up time. I'll probably move this
before the .zshrc set to short circuit having to set up all zplug script twice
before having a useable shell.
2019-04-30 23:29:37 -04:00

38 lines
999 B
Bash

# vim: syn=zsh
# Language
# TODO: LANG is getting set to "C" somewhere. Until I figure that out, I'm hard coding it.
#export LANG=${LANG:-en_US.UTF-8}
export LANG=en_US.UTF-8
export ZDOTDIR=${ZDOTDIR:-$HOME}
export ZDIR=${ZDIR:-$HOME/.zsh}
export ZPLUG_HOME=${ZPLUG_HOME:-$HOME/.zplug}
export EDITOR='vim'
export VISUAL='vim'
export PAGER='less'
# Less
# Set the default Less options.
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
# Remove -X and -F (exit if the content fits on one screen) to enable it.
export LESS='-F -g -i -M -R -S -w -X -z-4'
# This will load the specified zsh files if they exist in the $ZDIR/env directory.
# It will load based on hostname & uname.
env_loader(){
[ -e ${ZDIR}/env/$OSTYPE/$1 ] && source ${ZDIR}/env/$OSTYPE/$1
[ -e ${ZDIR}/env/$HOST/$1 ] && source ${ZDIR}/env/$HOST/$1
}
user_script_dir="~/.scripts"
if [ -d $user_script_dir ] ; then
PATH="$user_script_dir:$PATH"
fi
env_loader zshenv
# Dedup path.
typeset -gU path