-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
34 lines (27 loc) · 895 Bytes
/
.bashrc
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
#!/usr/bin/env bash
# If bash is not running interactively, don't do anything.
case $- in
*i*) ;;
*) return;;
esac
# Check the window size after each command and, if necessary, update the values
# of LINES and COLUMNS.
shopt -s checkwinsize
# Path to local binaries managed by the user.
USER_BIN=~/.local/bin
export PATH=${PATH:+${PATH}:}$USER_BIN
# Path to local libraries managed by the user.
USER_LIB=~/.local/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}$USER_LIB
# Store the path to the directory for bash configuration files for later use.
ROOT_BASH=~/.config/bash
# Abort bash configuration when the configuration file is not at the expected
# location.
if [[ ! -f "$ROOT_BASH/.bashrc" ]]; then
echo "ERROR .bashrc must be located at $ROOT_BASH/.bashrc"
exit 1
fi
# load extensions
for file in "$ROOT_BASH/extensions/"*; do
source "$file"
done