Skip to content

Instantly share code, notes, and snippets.

@NatWeiss
Last active December 30, 2015 05:29
Show Gist options
  • Save NatWeiss/7782943 to your computer and use it in GitHub Desktop.
Save NatWeiss/7782943 to your computer and use it in GitHub Desktop.
An OS X profile.
export PS1='\[\033[1;33m\]$PWD\n*\[\033[0;38m\] '
export EDITOR=/usr/bin/nano
export HISTSIZE=10485760
export HISTFILESIZE=10485760
# ls in color
export CLICOLOR=1
export LSCOLORS=CxFxCxDxBxegedabagacad
# make clean tarballs w/o ._* files
export COPYFILE_DISABLE=true
alias rsink="rsync -avzPe ssh"
alias wget="curl -O"
alias du="du -h -c -d 0 *"
alias cp="cp -v"
alias rm="rm -v"
alias mv="mv -v"
alias gyb="python ~/code/scripts/gyb/gyb.py"
export ANDROID_HOME=~/code/android/sdk
export NDK_ROOT=~/code/android/ndk/
export USE_CCACHE=1
# also run: ndk/build/tools/build-ccache.sh or prebuilts/misc/linux-x86/ccache/ccache -M 2G
if [ -d ~/code/bin ] ; then
export PATH=~/code/bin:"${PATH}"
fi
if [ -d ~/code/android/sdk ] ; then
export PATH=~/code/android/sdk/tools:~/code/android/sdk/platform-tools:~/code/android/ndk:"${PATH}"
fi
if [ -d /Library/PostgreSQL/9.2/bin ] ; then
export PATH=/Library/PostgreSQL/9.2/bin:"${PATH}"
fi
if [ -d /opt/local/bin ] ; then
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
fi
if [ -d /usr/share/ant/bin/ ] ; then
export PATH=/usr/share/ant/bin/:$PATH
fi
if [ -d /usr/local/sbin/ ] ; then
export PATH=/usr/local/sbin/:$PATH
fi
clear
if [ -f ~/.logo ] ; then
cat ~/.logo
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment