-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bash_profile
More file actions
56 lines (46 loc) · 1.21 KB
/
dot_bash_profile
File metadata and controls
56 lines (46 loc) · 1.21 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bash
# .bash_profile
# Some programs (I'm looking at you, tmux) only source .bash_profile, even for interactive sessions
if [ -f ~/.bashrc ]; then
# shellcheck source=/dev/null
. ~/.bashrc
fi
########## PATH
prepend_path() {
append_path="$1"
# Path entries that contain ':' are not valid
if grep -Fq ':' <<<"$append_path"; then
return 1
fi
# Sourced from rustc's env file setup
# affix colons on either side of $PATH to simplify matching
case ":${PATH}:" in
*:"$append_path":*) ;;
*)
# Prepending path in case a system-installed rustc needs to be overridden
export PATH="$append_path:$PATH"
;;
esac
}
if [ -f "$HOME/.cargo/env" ]; then
# shellcheck source=/dev/null
. "$HOME/.cargo/env"
fi
prepend_path ~/scripts
prepend_path ~/bin
prepend_path ~/.local/bin
prepend_path ~/.config/tmux/plugins/tmux-session-wizard/bin
# pnpm
export PNPM_HOME="/home/matt/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
if [ -f ~/.env ]; then
# shellcheck source=/dev/null
source ~/.env
fi
########## Other Enviornment Vars
export RCUTILS_COLORIZED_OUTPUT=1
export EDITOR=nvim