-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshenv
38 lines (32 loc) · 1.04 KB
/
.zshenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env zsh
# _
# _______| |__ ___ _ ____ __
# |_ / __| '_ \ / _ \ '_ \ \ / /
# / /\__ \ | | | __/ | | \ V /
# /___|___/_| |_|\___|_| |_|\_/
#
# Basic Environment for zsh with debugging provision
# [email protected] 20190110 115942 -0800 PST 1547150382 d(-_- )b...
if [[ -f "${HOME}/.debug" ]] ; then
setopt xtrace sourcetrace
# this file gets deleted on completion of .login for
# interactive shells
fi
if [[ -z ${ZDOTDIR} ]] ; then
typeset -x ZDOTDIR=$HOME/.zconf
fi
if [[ -d /data/data/com.termux ]] ; then
# were in termuxland
typeset -x TZ=$(getprop persist.timezone)
typeset -x TERMUXPREFIX=/data/data/com.termux/files/usr
typeset -x USRLOCAL=$TERMUXPREFIX/local
else
typeset -x USRLOCAL=/usr/local
fi
unsetopt global_rcs
# Ensure that a non-login, non-interactive shell has a defined environment.
# Sorin Ionescu <[email protected]>
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
source "${ZDOTDIR:-$HOME}/.zprofile"
fi
# vim: set ft=zsh sw=2 tw=0 fdm=manual et :