mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
22 lines
878 B
Bash
22 lines
878 B
Bash
# shellcheck shell=bash
|
|
|
|
# Fig pre block. Keep at the top of this file.
|
|
[[ -f "$HOME/.fig/shell/bashrc.pre.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.pre.bash"
|
|
|
|
if command -v brew &> /dev/null; then
|
|
PHP_PATH=$(brew --prefix php)/bin
|
|
export PATH="$PHP_PATH:$HOME/.composer/vendor/bin/:/usr/local/sbin:$PATH"
|
|
fi
|
|
|
|
if command -v nvm &> /dev/null; then
|
|
export NVM_DIR="$HOME/.nvm"
|
|
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
|
|
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
|
|
fi
|
|
|
|
|
|
|
|
# Fig post block. Keep at the bottom of this file.
|
|
[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.post.bash"
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|