-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.bash_exports
84 lines (67 loc) · 2.77 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
# ~/.bash_exports
# Define Bash exports.
# Invoked by .bash_profile file.
# Initialize
[ -z "$PS1" ] && return
RC_LOADED+=($(basename $BASH_SOURCE))
[ ${BASH_VERSION:0:1} -gt 3 ] && echo "${RC_LOADED[-1]} loaded." >&2
# Path.
export PATH="$HOME/bin:$HOME/binfiles:/usr/local/sbin:/usr/local/bin:$PATH"
# Prompt.
export PS1='\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]'
export PROMPT_DIRTRIM=2
# Perl 5.
if [ -d ~/perl5 ]; then
export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:$HOME/perl5"
export PERL_MB_OPT="--install_base $HOME/perl5"
export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"
export PERL5LIB="$HOME/perl5/lib/perl5:$PERL5LIB"
export PATH="$PATH:$HOME/perl5/bin"
fi
# Mule ESB configuration.
[ -d /usr/local/opt/mule ] && export MULE_HOME=/usr/local/opt/mule
[ -d "$MULE_HOME" ] && export PATH=$PATH:$MULE_HOME/bin
# asciidoc: Used to process AsciiDoc files through an XML stage (such as a2x for manpages).
[ -d /usr/local/etc/xml/catalog ] \
&& export XML_CATALOG_FILES=/usr/local/etc/xml/catalog
# android-sdk: Control Android SDK packages via the sdkmanager command.
[ -d /usr/local/share/android-sdk ] \
&& export ANDROID_SDK_ROOT=/usr/local/share/android-sdk
# For Go (a tool for managing Go source code).
[ -d "$HOME"/go/bin ] \
&& export PATH="$HOME/go/bin:$PATH"
# For Anaconda3 installer.
[ -d "$HOME"/anaconda/bin ] \
&& export PATH="$HOME/anaconda/bin:$PATH"
# For libxml2.
[ -d /usr/local/opt/libxml2/bin ] \
&& export PATH="/usr/local/opt/libxml2/bin:$PATH"
# tcl-tk: tk installs some X11 headers and macOS provides an (older) Tcl/Tk.
[ -d /usr/local/opt/tcl-tk/bin ] \
&& export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
# Adds depot_tools for Chromium.
[ -d $HOME/Sources/Chromium/depot_tools ] \
&& export PATH="$PATH:$HOME/Sources/Chromium/depot_tools"
# Configure ncurses package.
[ -d /usr/local/opt/ncurses/bin ] \
&& export PATH="/usr/local/opt/ncurses/bin:$PATH"
# Configure icu4c package.
[ -d /usr/local/opt/icu4c/bin ] \
&& export PATH="/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:$PATH"
# Configure Platform.sh.
# BEGIN SNIPPET: Platform.sh CLI configuration
[ -d "$HOME"/.platformsh ] \
&& (
export PATH="$PATH:$HOME/.platformsh/bin"
if [ -f "$HOME/.platformsh/shell-config.rc" ]; then . "$HOME/.platformsh/shell-config.rc"; fi
)
# END SNIPPET
# Notes:
# For compilers to find this software you may need to set:
# LDFLAGS: -L/usr/local/opt/ncurses/lib
# CPPFLAGS: -I/usr/local/opt/ncurses/include
# For pkg-config to find this software you may need to set:
# PKG_CONFIG_PATH: /usr/local/opt/ncurses/lib/pkgconfig
# Configure Ansible.
# @see: https://docs.ansible.com/ansible/latest/reference_appendices/config.html
#ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3