Last active
January 26, 2016 13:31
-
-
Save joaoneto/6096670 to your computer and use it in GitHub Desktop.
Mac OS .profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ls="ls -G" | |
# alias mysql=/usr/local/mysql/bin/mysql | |
# alias mysqladmin=/usr/local/mysql/bin/mysqladmin | |
export PATH=$PATH:$HOME/bin | |
# export PATH=$PATH:/usr/local/mongodb/bin | |
# export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH | |
### Added by the Heroku Toolbelt | |
# export PATH=/usr/local/heroku/bin:$PATH | |
# Custom $PS1 | |
RED='\[\e[0;31m\]' | |
BRED='\[\e[1;31m\]' | |
BLUE='\[\e[0;34m\]' | |
BBLUE='\[\e[1;34m\]' | |
CYAN='\[\e[0;36m\]' | |
BCYAN='\[\e[1;36m\]' | |
NC='\[\e[0m\]' | |
BLACK='\[\e[0;30m\]' | |
BBLACK='\[\e[1;30m\]' | |
GREEN='\[\e[0;32m\]' | |
BGREEN='\[\e[1;32m\]' | |
YELLOW='\[\e[0;33m\]' | |
BYELLOW='\[\e[1;33m\]' | |
MAGENTA='\[\e[0;35m\]' | |
BMAGENTA='\[\e[1;35m\]' | |
WHITE='\[\e[0;37m\]' | |
BWHITE='\[\e[1;37m\]' | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /' | |
} | |
PS1="$CYAN\$(date +%H:%M) $YELLOW[$BLUE\u@\h:$RED\w$YELLOW]$NC\n$YELLOW\$(parse_git_branch)$NC% " | |
# Bash completion | |
# BASH_COMPLETION_COMPAT_DIR=/opt/bash_completion.d | |
# for i in $(LC_ALL=C command ls "$BASH_COMPLETION_COMPAT_DIR"); do | |
# i=$BASH_COMPLETION_COMPAT_DIR/$i | |
# # [[ ${i##*/} != @(Makefile*|.*) && -f $i && -r $i ]] && . "$i" | |
# [[ -f $i && -r $i ]] && . "$i" | |
# done | |
# OPT | |
PATH="/opt:$PATH" | |
# Redis | |
export REDIS_HOME="/opt/redis" | |
PATH="$REDIS_HOME/src:$PATH" | |
# Neo4j | |
# export NEO4J_HOME="/opt/neo4j" | |
# PATH="$NEO4J_HOME/bin:$PATH" | |
# Elasticsearch | |
# export ES_HOME="/opt/elasticsearch" | |
# PATH="$ES_HOME/bin:$PATH" | |
# Mongodb | |
# export MONGODB_HOME="/opt/mongodb" | |
# PATH="$MONGODB_HOME/bin:$PATH" | |
# CouchDB | |
# PATH="/opt/Apache\ CouchDB.app/Contents/Resources/couchdbx-core/bin:$PATH" | |
# Couch Lucene | |
# PATH="/usr/local/opt/couchdb-lucene/libexec/clbin:$PATH" | |
# NVM | |
[[ -s /Users/joaoneto/.nvm/nvm.sh ]] && . /Users/joaoneto/.nvm/nvm.sh | |
# DOCKER | |
# https://andy.stanton.is/writing/about/running-a-local-docker-machine-at-startup-on-osx/ | |
export DOCKER_TLS_VERIFY="1" | |
export DOCKER_HOST="tcp://192.168.99.100:2376" | |
export DOCKER_CERT_PATH="/Users/joaoneto/.docker/machine/machines/default" | |
export DOCKER_MACHINE_NAME="default" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment