-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
36 lines (31 loc) · 961 Bytes
/
Copy path.bashrc
File metadata and controls
36 lines (31 loc) · 961 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
26
27
28
29
30
31
32
33
34
35
36
# shellcheck shell=bash
# Minimal Fedora-focused Bash config
# Source global definitions (present on Fedora)
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User local bins
if [ -d "$HOME/.local/bin" ]; then
case ":$PATH:" in *":$HOME/.local/bin:"*) ;; *) PATH="$HOME/.local/bin:$PATH" ;; esac
fi
if [ -d "$HOME/bin" ]; then
case ":$PATH:" in *":$HOME/bin:"*) ;; *) PATH="$HOME/bin:$PATH" ;; esac
fi
export PATH
# Source user aliases
if [ -f "$HOME/.bash_aliases" ]; then
. "$HOME/.bash_aliases"
fi
# Go tools bin on PATH (for tools installed via `go install`, e.g., shfmt)
# Ensures editor tooling is available across repos without per-workspace wrappers
GOPATH_DIR="${GOPATH:-$HOME/go}"
if [ -d "$GOPATH_DIR/bin" ]; then
case ":$PATH:" in *":$GOPATH_DIR/bin:"*) ;; *) PATH="$GOPATH_DIR/bin:$PATH" ;; esac
export PATH
fi
# fnm
FNM_PATH="$HOME/.local/share/fnm"
if [ -d "$FNM_PATH" ]; then
export PATH="$FNM_PATH:$PATH"
eval "$(fnm env)"
fi