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

26 lines
455 B
Bash

# make word splitting behave like bash
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