-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathbashrc
37 lines (28 loc) · 1.52 KB
/
bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# .bashrc is loaded in non-login shells.
# It's also loaded by .bash_profile (which is loaded in login shells).
# Devbox (https://github.com/barsoom/devbox) provides a ~/.profile that we want both in login and non-login shells.
[[ -s ~/.profile ]] && source ~/.profile
# Expected by https://github.com/barsoom/devbox: https://auctionet.slack.com/archives/CF9SAN79V/p1552987988719300, https://auctionet.slack.com/archives/CF9SAN79V/p1553006327787000?thread_ts=1552987988.719300&cid=CF9SAN79V
[[ -s "$HOME/.shell_local" ]] && source "$HOME/.shell_local"
# Fuzzy file finder used by Vim: https://github.com/junegunn/fzf
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
source ~/.bash/path.sh
source ~/.bash/env.sh
source ~/.bash/completion.sh
source ~/.bash/aliases.sh
source ~/.bash/functions.sh
source ~/.bash/prompt.sh
if [[ "$DEVBOX" ]]; then
# Auctionet's "Devbox" tool is quite coupled to RVM currently.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
else
# For the "asdf" extendable version manager (https://github.com/asdf-vm/asdf).
. $(brew --prefix asdf)/asdf.sh
fi
export WMSJAVA_HOME="/Library/WowzaStreamingEngine-4.7.0/java"
# Stop macOS from saying zsh is the new default.
export BASH_SILENCE_DEPRECATION_WARNING=1
# nvm (Node Version Manager)
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion