Repository navigation
Expand file tree
/
Copy pathbashrc
More file actions
33 lines (25 loc) · 1.43 KB
/
Copy pathbashrc
File metadata and controls
33 lines (25 loc) · 1.43 KB
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
# .bashrc is loaded in non-login shells.
# It's also loaded by .bash_profile (which is loaded in login shells).
# Ghostty shell integration for Bash. This should be at the top of your bashrc!
# https://ghostty.org/docs/features/shell-integration
if [ -n "${GHOSTTY_RESOURCES_DIR}" ]; then
builtin source "${GHOSTTY_RESOURCES_DIR}/shell-integration/bash/ghostty.bash"
fi
# 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
# 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