Update zshrc

This commit is contained in:
Sami Samhuri 2022-08-22 09:49:04 -07:00
parent d9bd83d62a
commit 4c6afe5b06
No known key found for this signature in database
GPG key ID: 4B4195422742FC16

8
zshrc
View file

@ -32,7 +32,7 @@ fi
### SSH keys ### SSH keys
# ============ # ============
if mac && [[ "$TERM_PROGRAM" != "vscode" ]]; then if mac && [[ "$TERM_PROGRAM" != "vscode" ]] && [[ -z "$INTELLIJ_ENVIRONMENT_READER" ]]; then
ssh-add --apple-load-keychain ssh-add --apple-load-keychain
fi fi
@ -42,9 +42,10 @@ fi
custom_paths=( custom_paths=(
/sbin /usr/sbin /sbin /usr/sbin
/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin
/usr/local/bin /usr/local/sbin $HOME/Library/Android/sdk/platform-tools
$HOME/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/bin $HOME/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/bin
$HOME/go/bin $HOME/go/bin
/usr/local/bin /usr/local/sbin
$HOME/bin $HOME/bin
) )
for dir in $custom_paths; do for dir in $custom_paths; do
@ -100,6 +101,9 @@ if mac; then
if [[ -d $HOME/homebrew/opt/openssl@1.1 ]]; then if [[ -d $HOME/homebrew/opt/openssl@1.1 ]]; then
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$HOME/homebrew/opt/openssl@1.1" export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$HOME/homebrew/opt/openssl@1.1"
fi fi
if [[ -d $HOME/homebrew/opt/libpq/bin ]]; then
export PATH="$HOME/homebrew/opt/libpq/bin:$PATH"
fi
# Set Apple Terminal.app resume directory # Set Apple Terminal.app resume directory
if [[ $TERM_PROGRAM == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]] { if [[ $TERM_PROGRAM == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]] {