-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bashrc
More file actions
62 lines (51 loc) · 1.35 KB
/
dot_bashrc
File metadata and controls
62 lines (51 loc) · 1.35 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
57
58
59
60
61
62
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
if ! [[ "$PATH" =~ "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:" ]]; then
PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
fi
export PATH
if ! [[ "$PATH" =~ "$HOME/go/bin:" ]]; then
PATH="$HOME/go/bin:$PATH"
fi
export PATH
if ! [[ "$PATH" =~ "$HOME/.bun/bin:" ]]; then
PATH="$HOME/.bun/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# Load environment variables from ~/.env
if [ -f ~/.env ]; then
set -o allexport
source ~/.env
set +o allexport
fi
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
which mise >/dev/null 2>&1 && eval "$(mise activate bash)" && export PATH="$HOME/.cache/.bun/bin:$PATH"
if command -v hx >/dev/null 2>&1; then
export EDITOR=hx
elif command -v helix >/dev/null 2>&1; then
export EDITOR=helix
alias hx=helix
else
export EDITOR=vim
fi
if command -v direnv >/dev/null 2>&1; then
eval "$(direnv hook bash)"
fi