forked from kenorb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_exports
99 lines (78 loc) · 3.15 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
88
89
90
91
92
93
94
95
96
97
98
99
# ~/.bash_exports
# Define Bash exports.
# Invoked by .bashrc file.
# Editor.
export EDITOR='vim'
# Path.
export PATH="$HOME/bin:$HOME/binfiles:/usr/local/sbin:/usr/local/bin:$PATH"
# Don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options.
export HISTCONTROL="ignoredups"
# For setting history length see HISTSIZE and HISTFILESIZE in bash(1).
export HISTSIZE=10000
# Keep around 32K lines of history in file.
export HISTFILESIZE==$((1 << 15))
# Keep the times of the commands in history
HISTTIMEFORMAT='%F %T'
# Use a more compact format for the 'time' builtin's output.
TIMEFORMAT='real:%lR user:%lU sys:%lS'
# 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
# Define Composer bin folder.
export COMPOSER_BIN_DIR="/usr/local/bin"
# Mule ESB configuration.
[ -d /usr/local/opt/mule ] && export MULE_HOME=/usr/local/opt/mule
[ -d "$MULE_HOME" ] && export PATH=$PATH:$MULE_HOME/bin
# Fixes for sed.
# @see: http://www.delorie.com/gnu/docs/gawk/gawk_149.html
# @see: http://stackoverflow.com/q/19242275/55075
export LANG=C
export LC_CTYPE=C
# Set architecture flags for x64
export ARCHFLAGS="-arch x86_64"
# For DevDesktop app.
[ -d /Applications/DevDesktop/drush ] \
&& export PATH="$PATH:/Applications/DevDesktop/drush"
# 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 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 Apple's CLT package.
[ -d /usr/local/opt/apr/bin ] \
&& export PATH="/usr/local/opt/apr/bin:$PATH"
# Configure ncurses package.
[ -d /usr/local/opt/ncurses/bin ] \
&& export PATH="/usr/local/opt/ncurses/bin:$PATH"
# 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 go package.
[ -d /usr/local/opt/go/libexec/bin ] \
&& export PATH=$PATH:/usr/local/opt/go/libexec/bin
# Notes for go package:
# A valid GOPATH is required to use the `go get` command.
# If $GOPATH is not specified, $HOME/go will be used by default
# @see: https://golang.org/doc/code.html#GOPATH