-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
31 lines (24 loc) · 838 Bytes
/
.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
# ~/.profile: executed by login shells and sourced by .zshrc
# Common environment variables and PATH modifications go here
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LANGUAGE="en_US.UTF-8"
if command -v vim >/dev/null 2>&1; then
export EDITOR="vim"
export VISUAL="vim"
elif command -v nano >/dev/null 2>&1; then
export EDITOR="nano"
export VISUAL="nano"
fi
if [ "$(uname)" = "Darwin" ]; then
[ -d "/opt/homebrew/bin" ] && export PATH="/opt/homebrew/bin:$PATH"
[ -d "/usr/local/bin" ] && export PATH="/usr/local/bin:$PATH"
fi
export LESS="-R"
if [ -n "$BASH_VERSION" ] && [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
[ -f "$HOME/.profile.local" ] && source "$HOME/.profile.local"
export PATH