Skip to content

Commit

Permalink
more celanup
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <github@jessfraz.com>
  • Loading branch information
jessfraz committed Jan 22, 2025
1 parent ffab284 commit 6241956
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ if [[ -r "${HOME}/.bashrc" ]]; then
# shellcheck source=/dev/null
source "${HOME}/.bashrc"
fi

. "$HOME/.cargo/env"
22 changes: 18 additions & 4 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,30 @@ if ! shopt -oq posix; then
fi
if [[ -d /etc/bash_completion.d/ ]]; then
for file in /etc/bash_completion.d/* ; do
# shellcheck source=/dev/null
source "$file"
if [[ -n $BASHRC_BENCH ]]; then
TIMEFORMAT="$file: %R"
# shellcheck source=/dev/null
time source "$file"
unset TIMEFORMAT
else
# shellcheck source=/dev/null
source "$file"
fi
done
fi

# We do this before the following so that all the paths work.
for file in ~/.{bash_prompt,aliases,functions,path,dockerfunc,extra,exports}; do
if [[ -r "$file" ]] && [[ -f "$file" ]]; then
# shellcheck source=/dev/null
source "$file"
if [[ -n $BASHRC_BENCH ]]; then
TIMEFORMAT="$file: %R"
# shellcheck source=/dev/null
time source "$file"
unset TIMEFORMAT
else
# shellcheck source=/dev/null
source "$file"
fi
fi
done
unset file
Expand Down
6 changes: 3 additions & 3 deletions .path
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export LDFLAGS="${LDFLAGS} -L/opt/homebrew/lib"
export CPPFLAGS="${CPPFLAGS} -I/opt/homebrew/include"

# shellcheck source=/dev/null
if [ -r "/opt/homebrew/etc/profile.d/bash_completion.sh" ]; then . "/opt/homebrew/etc/profile.d/bash_completion.sh"; fi
if [ -f "/opt/homebrew/etc/profile.d/bash_completion.sh" ]; then . "/opt/homebrew/etc/profile.d/bash_completion.sh"; fi

# OpenSSL
export PATH="/opt/homebrew/opt/openssl/bin:${PATH}"
Expand All @@ -73,8 +73,8 @@ export PATH="/opt/homebrew/opt/llvm/bin:${PATH}"
# CXXFLAGS
CXXFLAGS="${CXXFLAGS} -stdlib=libc++ -Wno-deprecated-declarations -Wno-deprecated -framework CoreFoundation"

. "$HOME/.cargo/env"
export RUST_SYSROOT="$(rustc --print sysroot)"
# Rust
RUST_SYSROOT="$(rustc --print sysroot)"
export RUST_SRC_PATH="${RUST_SYSROOT}/lib/rustlib/src/rust/src"
export DYLD_LIBRARY_PATH="${RUST_SYSROOT}/lib:$DYLD_LIBRARY_PATH"

0 comments on commit 6241956

Please sign in to comment.