-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bash_exports
87 lines (67 loc) · 2.95 KB
/
.bash_exports
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Increase Bash history size. Allow 32³ entries; the default is 500.
export HISTSIZE='32768';
export HISTFILESIZE="${HISTSIZE}";
# Omit duplicates and commands that begin with a space from history.
export HISTCONTROL='ignoreboth';
# Prefer US English and use UTF-8.
export LANG='en_US.UTF-8';
export LC_ALL='en_US.UTF-8';
# Highlight section titles in manual pages.
export LESS_TERMCAP_md="${yellow}";
# Don’t clear the screen after quitting a manual page.
export MANPAGER='less -X';
# Don't check mail when opening terminal.
unset MAILCHECK
# Set this to false to turn off version control status checking within the prompt for all themes
export SCM_CHECK=true
# Set my editor and git editor
export EDITOR="vim"
export GIT_EDITOR="vim"
# Use our git-ssh wrapper for greater control when git calls ssh
# @see https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables#_miscellaneous
export GIT_SSH="${HOME}/bin/git-ssh"
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
export PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
export PATH="$HOME/.local/bin:$PATH"
fi
export MARKPATH="${HOME}/.marks"
export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/gnu-which/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
# Setup nvm and node/npm versions
export NODE_VERSION="${NODE_VERSION:-12.21.0}"
export NPM_VERSION="${NPM_VERSION:-6.14.13}"
export NVM_DIR="${NVM_DIR:-"${HOME}/.nvm"}"
export NVM_INSTALL_DIR="${NVM_INSTALL_DIR:-/usr/local/opt/nvm}"
export NODE_OPTIONS="--max_old_space_size=4096"
# Setup yvm and yarn version
export YARN_VERSION="${YARN_VERSION:-1.22.11}"
export YVM_INSTALL_DIR="${YVM_INSTALL_DIR:-"/usr/local/opt/yvm"}"
export YARN_NPM_AUTH_IDENT="$(cat ~/.npmrc | grep -o '_auth=.*' | sed 's/_auth=//g')"
# Setup rbenv in path and specify ruby version
export RUBY_VERSION="${RUBY_VERSION:-2.7.4}"
export RBENV_VERSION="${RUBY_VERSION}"
export RBENV_ROOT="${RBENV_ROOT:-"${HOME}/.rbenv"}"
export RBENV_INSTALL_DIR="${RBENV_INSTALL_DIR:-/usr/local/bin}"
export PATH="$RBENV_ROOT/shims:$PATH"
# Setup pyenv in path and specify python version
export PYTHON_VERSION="${PYTHON_VERSION:-3.9.7}"
export PYENV_VERSION="${PYTHON_VERSION}"
export PYENV_ROOT="${PYENV_ROOT:-"${HOME}/.pyenv"}"
export PYENV_INSTALL_DIR="${PYENV_INSTALL_DIR:-/usr/local/bin}"
export PATH="$PYENV_ROOT/shims:$PATH"
# The java version to install via sdkman
export JAVA_VERSION="${JAVA_VERSION:-11.0.11.hs-adpt}"
export ANDROID_HOME="${HOME}/Library/Android/sdk"
export PATH=$PATH:$ANDROID_HOME/platform-tools/
export PATH=$PATH:$ANDROID_HOME/tools/bin/
export PATH=$PATH:$ANDROID_HOME/tools/
export PATH=$PATH:$ANDROID_HOME/emulator
export GRADLE_USER_HOME="${HOME}/.gradle"
export COMP_WORDBREAKS=${COMP_WORDBREAKS//:}