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
|
. $(brew --prefix)/etc/bash_completion
|
||||||
fi
|
fi
|
||||||
EOF
|
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
|
################################################################### GPG Agent
|
||||||
cat > ~/Library/profile.d/900.gpg-agent.sh <<'EOF'
|
cat > ~/Library/profile.d/900.gpg-agent.sh <<'EOF'
|
||||||
# check for existing running agent info
|
# check for existing running agent info
|
||||||
|
@ -148,7 +158,7 @@ if [[ ! -e $HOME/.gpg-agent-info ]]; then
|
||||||
--daemon \
|
--daemon \
|
||||||
--write-env-file \
|
--write-env-file \
|
||||||
--use-standard-socket \
|
--use-standard-socket \
|
||||||
--pinentry-program $HOME/Library/Homebrew/bin/pinentry-mac \
|
--pinentry-program $(brew --prefix)/bin/pinentry-mac \
|
||||||
2>&1 >/dev/null
|
2>&1 >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -236,6 +246,7 @@ HOMEBREW_PKGS="
|
||||||
torsocks
|
torsocks
|
||||||
unrar
|
unrar
|
||||||
unzip
|
unzip
|
||||||
|
vimpager
|
||||||
watch
|
watch
|
||||||
wget
|
wget
|
||||||
whatmask
|
whatmask
|
||||||
|
|
Loading…
Reference in New Issue