-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile
More file actions
62 lines (49 loc) · 2.07 KB
/
profile
File metadata and controls
62 lines (49 loc) · 2.07 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
#!/bin/sh
export EDITOR=nvim
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export TERMINFO="$XDG_DATA_HOME"/terminfo
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo
if [ -x /usr/libexec/path_helper ]; then
export PATH=""
eval "$(/usr/libexec/path_helper -s)"
fi
if [ -z "$TMUX" ]; then
if toe -a | grep xterm-256color-italic >/dev/null ; then
export TERM=xterm-256color-italic
else
export TERM=xterm-256color
fi
fi
if [ -x "/opt/homebrew/bin/brew" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
elif [ -x "/usr/local/bin/brew" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
if [ -n "$HOMEBREW_PREFIX" ]; then
export HOMEBREW_CASK_OPTS="--appdir=${HOME}/Applications --caskroom=${HOMEBREW_PREFIX}/Caskroom"
fi
# JAVA_TOOL_OPTIONS
if /usr/libexec/java_home 1> /dev/null 2>&1; then
export JAVA_HOME
JAVA_HOME=$(/usr/libexec/java_home)
fi
export _JAVA_OPTIONS="-Djava.awt.headless=true"
export GROOVY_HOME="$HOMEBREW_PREFIX/opt/groovy/libexec"
export GEM_HOME="$XDG_DATA_HOME/gem"
export PATH="$HOME/bin:$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$HOMEBREW_PREFIX/opt/grep/libexec/gnubin:$HOMEBREW_PREFIX/opt/findutils/libexec/gnubin:$GEM_HOME/bin:$HOME/Library/Python/3.9/bin:$PATH"
export PATH="$PATH:$XDG_DATA_HOME/rvm/bin" # Add RVM to PATH for scripting
export MANPATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnuman:$HOMEBREW_PREFIX/opt/grep/libexec/gnuman:$HOMEBREW_PREFIX/opt/findutils/libexec/gnuman:$MANPATH"
export MANPAGER="nvim +Man!"
export rvm_path="$XDG_DATA_HOME/rvm"
export GEM_SPEC_CACHE="$XDG_DATA_HOME/gem/specs"
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
export LESSHISTFILE="$XDG_CACHE_HOME/less/history"
export GNUPGHOME="${XDG_DATA_HOME}/gnupg"
if [ ! -d "$GNUPGHOME" ]; then
mkdir -p "$GNUPGHOME"
fi
# rvm doubles startup time, disable it unless it's necessary
# [ -s "$XDG_DATA_HOME/rvm/scripts/rvm" ] && . "$XDG_DATA_HOME/rvm/scripts/rvm" # Load RVM into a shell session *as a function*
[ -f ~/.profile.local ] && . ~/.profile.local