change brew prefix to runtime determination
This commit is contained in:
parent
98612700cd
commit
b0154001a4
|
@ -130,6 +130,16 @@ if [ -f $(brew --prefix)/etc/bash_completion ]; then
|
|||
. $(brew --prefix)/etc/bash_completion
|
||||
fi
|
||||
EOF
|
||||
#################################################### set sane env preferences
|
||||
cat > ~/Library/bashrc.d/400.environment.sh <<'EOF'
|
||||
export PAGER=vimpager
|
||||
export EDITOR=vim
|
||||
export VISUAL=$EDITOR
|
||||
EOF
|
||||
###################################################### set up helpful aliases
|
||||
cat > ~/Library/bashrc.d/500.aliases.sh <<'EOF'
|
||||
alias less=vimpager
|
||||
EOF
|
||||
################################################################### GPG Agent
|
||||
cat > ~/Library/profile.d/900.gpg-agent.sh <<'EOF'
|
||||
# check for existing running agent info
|
||||
|
@ -148,7 +158,7 @@ if [[ ! -e $HOME/.gpg-agent-info ]]; then
|
|||
--daemon \
|
||||
--write-env-file \
|
||||
--use-standard-socket \
|
||||
--pinentry-program $HOME/Library/Homebrew/bin/pinentry-mac \
|
||||
--pinentry-program $(brew --prefix)/bin/pinentry-mac \
|
||||
2>&1 >/dev/null
|
||||
fi
|
||||
|
||||
|
@ -236,6 +246,7 @@ HOMEBREW_PKGS="
|
|||
torsocks
|
||||
unrar
|
||||
unzip
|
||||
vimpager
|
||||
watch
|
||||
wget
|
||||
whatmask
|
||||
|
|
Loading…
Reference in New Issue