-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbashrc
More file actions
25 lines (22 loc) · 676 Bytes
/
Copy pathbashrc
File metadata and controls
25 lines (22 loc) · 676 Bytes
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
# If not running interactively, don't do anything (same as [ -z $PS1 ] ?)
case $- in
*i*) ;;
*) return;;
esac
function whisper {
if [ -n "$VERBOSE" ]; then echo "$@"; fi
}
function run_init_scripts {
local file
for file in $HOME/.sh.d/*; do
case "$file" in
(*.sh) whisper "sourcing $file"; source "$file" ;;
(*.bash) whisper "sourcing $file"; source "$file" ;;
esac
done
}
run_init_scripts
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
[ -s "$HOME/.cargo/env" ] && \. "$HOME/.cargo/env"