Mercurial > dotfiles
view .shell.d/99.openssl.sh @ 526:852565046ed0 default tip
zsh: fidget with screen/tmux message
This should speed things up very slightly by avoiding some `grep` action
in the common case of no detached screens/tmuxes.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 14 Nov 2022 11:02:35 -0500 |
parents | 24f7a481d284 |
children |
line wrap: on
line source
if hash brew 2>/dev/null ; then BREW_SSL_PREFIX_CACHE_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/durin42-zsh/brew-openssl-prefix" if [ -e "$BREW_SSL_PREFIX_CACHE_FILE" ] ; then BREW_OPENSSL_PREFIX="$(cat $BREW_SSL_PREFIX_CACHE_FILE)" fi if [ -z "$BREW_OPENSSL_PREFIX" -o ! -d "$BREW_OPENSSL_PREFIX" ] ; then BREW_OPENSSL_PREFIX="$(brew --prefix openssl)" mkdir -p "$(dirname $BREW_SSL_PREFIX_CACHE_FILE)" echo "$BREW_OPENSSL_PREFIX" > "$BREW_SSL_PREFIX_CACHE_FILE" fi export OPENSSL_INCLUDE_DIR="${BREW_OPENSSL_PREFIX}/include" export OPENSSL_LIB_DIR="${BREW_OPENSSL_PREFIX}/lib" export DEP_OPENSSL_INCLUDE="${BREW_OPENSSL_PREFIX}/include" fi