-
Notifications
You must be signed in to change notification settings - Fork 12
/
.bash_exports_macos
31 lines (25 loc) · 1.48 KB
/
.bash_exports_macos
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
# ~/.bash_exports_macos
# Define Bash exports for macOS.
# 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
# To silence the warning (HT208050).
export BASH_SILENCE_DEPRECATION_WARNING=1
# For DevDesktop app.
[ -d /Applications/DevDesktop/drush ] \
&& export PATH="$PATH:/Applications/DevDesktop/drush"
# Set PATH for OSX
type brew &>/dev/null && brew --prefix [email protected] &> /dev/null && export PATH="$(brew --prefix [email protected])/bin:$PATH"
export PATH="$PATH:/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin/gcc"
export PATH="$PATH:/Applications/MAMP/Library/bin"
export PATH="/usr/libexec:$PATH" # Adds utils from libexec.
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" # add a "gnubin" for coreutils
export PYTHONPATH="$PYTHONPATH:$HOME/.python" # /usr/local/lib/python3.4/site-packages"
# :/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
# Fix for Git-SVN (OSX) [Error: Can't locate SVN/Core.pm in @INC]. See: http://stackoverflow.com/questions/13571944/git-svn-unrecognized-url-scheme-error
export PERL5LIB="$HOME/perl5/lib/perl5:/Applications/Xcode.app/Contents/Developer/Library/Perl/5.16"
# Set prompt
export GIT_PS="\[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\] "
export PS1="\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\W \[\033[01;35m\]\$ $GIT_PS\[\033[00m\]"