prezto/runcoms/zshenv
Mike Cravey 74b654e769 Customizing zprezto to my tastes
- Removing logout and login signatures/messages
- Sets zprezto to run under my dotfiles
- Adds zsh completion script
2016-06-10 00:45:39 +01:00

15 lines
391 B
Bash

#!/usr/bin/env zsh
#
# Defines environment variables.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
export DOTFILES="$(cd "$(dirname "$(readlink ~/.bashrc)")" && cd .. && pwd)"
# Ensure that a non-login, non-interactive shell has a defined environment.
if [[ "$SHLVL" -eq 1 && ! -o LOGIN && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
source "${ZDOTDIR:-$HOME}/.zprofile"
fi