1
0
Fork 0
dotfiles/files/.config/zsh/custom/000-env.zsh

28 lines
451 B
Bash
Raw Normal View History

2018-03-10 04:04:29 +00:00
# ZSH
setopt SH_WORD_SPLIT
# Evaluate if root user
if uname -s | egrep -q '^(CYGWIN)|(MINGW)|(MSYS)'; then
#windows
if id -G | grep -q 544; then
IS_ROOT=true
else
IS_ROOT=false
fi
else
#'nix
if [[ $UID -eq 0 ]]; then
IS_ROOT=true
else
IS_ROOT=false
fi
fi
export IS_ROOT
# gpg-agent
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
source ~/.local/profile.d/*