-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
56 lines (44 loc) · 1.35 KB
/
.bash_profile
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
# see /usr/share/doc/bash/examples/startup-files for examples
if [ -n "${BASH_VERSION}" ]; then
if [ -f "${HOME}/.bashrc" ]; then
. "${HOME}/.bashrc"
fi
fi
if [[ -z "${ROMANS_TAGS_PATH}" ]]; then
mkdir -p "$HOME/.tags"
export ROMANS_TAGS_PATH="$HOME/.tags"
fi
PATH="${HOME}/bin:${HOME}/.local/bin:$PATH"
if [[ -d "${HOME}/.dotfiles" ]]; then
if [[ ${PATH} != *".dotfiles/scripts"* ]]; then
PATH="${HOME}/.dotfiles/scripts:${PATH}"
fi
if [[ "${OSTYPE}" == *"msys"* ]]; then
if [[ ${PATH} != *".dotfiles/bin/win"* ]]; then
PATH="${PATH}:${HOME}/.dotfiles/bin/win/"
fi
fi
# colors break sftp/scp
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
if [[ -n "${SSH_TTY}" ]]; then
# Setup terminal colors
BASE16_SHELL="${HOME}/.dotfiles/base16-eighties.sh"
[[ -s ${BASE16_SHELL} ]] && source ${BASE16_SHELL}
fi
else
BASE16_SHELL="${HOME}/.dotfiles/base16-eighties.sh"
[[ -s ${BASE16_SHELL} ]] && source ${BASE16_SHELL}
fi
fi
if [[ "${OSTYPE}" == *"darwin"* ]]; then
if [[ -z "$(command -v brew)" ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
fi
if [[ -s "${HOME}/.cargo/env" ]]; then
source "${HOME}/.cargo/env"
fi
if [[ -n "${ROMANS_PATH}" ]]; then
PATH="${ROMANS_PATH}:${PATH}"
fi
export PATH