Last active
August 17, 2017 00:07
-
-
Save briatte/71342044c75fb49039c5 to your computer and use it in GitHub Desktop.
.bash_profile
This file contains hidden or 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
# ============================================================================== | |
# TWEAKS | |
# ============================================================================== | |
# use nano instead of vi as default editor | |
# (e.g. for crontab -e) | |
# | |
export EDITOR="nano" | |
# tell ls to be colourful | |
# (conflicts with Smyck color theme, disable when using it) | |
# | |
# export CLICOLOR=1 | |
# export LSCOLORS=Exfxcxdxbxegedabagacad | |
# export CLICOLOR=1 | |
# export LSCOLORS=GxFxCxDxBxegedabagaced | |
# tell grep to highlight matches | |
# | |
export GREP_OPTIONS='--color=auto' | |
# set shell prompt to user@hostname (in color) | |
# | |
export TERM="xterm-color" | |
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ ' | |
# ============================================================================== | |
# ALIASES | |
# ============================================================================== | |
# case-sensitive -find- on full disk, hiding warnings | |
# | |
alias ff="find \* 2>/dev/null / -name" | |
# customized listings | |
# | |
alias ls="ls -Gh" # default | |
alias ll="ls -lahL" # detailed | |
# slower process sampling | |
# | |
alias top5="top -d -u -s 5" | |
# en0 inspection: address resolution | |
# | |
alias whoelse="arp -ani en0" | |
# en0 inspection: Mac address spoofing | |
# | |
alias become="sudo ifconfig en0 ether" | |
# ============================================================================== | |
# PATHS | |
# ============================================================================== | |
# Absolute basics (covers MacPorts): | |
# | |
# - /opt/local/bin | |
# - /opt/local/sbin | |
# - /usr/bin | |
# - /bin | |
# - /usr/sbin | |
# - /sbin | |
export PATH="/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin" | |
# Homebrew | |
# ------------------------------------------------------------------------------ | |
export PATH="/usr/local/bin:$PATH" | |
# X11 | |
# ------------------------------------------------------------------------------ | |
export PATH="/opt/X11/bin:$PATH" | |
# TeX (binds to /Library/TeX/texbin) | |
# ------------------------------------------------------------------------------ | |
export PATH="/usr/texbin:$PATH" | |
# Java (source: github.com/egonw/rrdf) | |
# ------------------------------------------------------------------------------ | |
# export JAVA_HOME=$(/usr/libexec/java_home) | |
# export PATH=$PATH:$JAVA_HOME/bin | |
# export LD_LIBRARY_PATH=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre/lib/server | |
# Go | |
# ------------------------------------------------------------------------------ | |
export PATH="/usr/local/opt/go/libexec/bin:$PATH" | |
# go version | |
# Julia | |
# ------------------------------------------------------------------------------ | |
# Julia 0.3.10 | |
# export PATH="/Applications/Julia-0.3.10.app/Contents/Resources/julia/bin:$PATH" | |
# Python | |
# ------------------------------------------------------------------------------ | |
export PATH="/usr/local/opt/python/libexec/bin:$PATH" | |
# python --version | |
# if Anaconda is installed | |
# export PATH="$HOME/anaconda/bin:$PATH" | |
# to update pip: | |
# pip2 install --upgrade pip setuptools | |
# Rust | |
# ------------------------------------------------------------------------------ | |
export PATH="$HOME/.cargo/bin:$PATH" | |
# rustup --version | |
# SQL | |
# ------------------------------------------------------------------------------ | |
# MySQL | |
export PATH="/usr/local/mysql/bin:$PATH" | |
# Postgres.app (PostgreSQL) | |
export PATH="/Applications/Postgres.app/Contents/Versions/9.4/bin:$PATH" | |
# use to compile RPostgreSQL | |
# export PATH="/Applications/Postgres.app/Contents/Versions/9.4/include:$PATH" | |
# Stata | |
# ------------------------------------------------------------------------------ | |
# Stata 12 | |
export PATH="/Applications/Stata12_OSX_10.6:$PATH" | |
# # Stata 13 | |
# export PATH="/Applications/Stata13/StataSE.app/Contents/MacOS:$PATH" | |
# Stata 14 | |
export PATH="/Applications/Stata14_OSX_10.7:$PATH" | |
# Ruby (has to be last) | |
# ------------------------------------------------------------------------------ | |
# Add RVM to PATH for scripting. | |
# Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
# Load RVM into a shell session *as a function* | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
# kthxbye |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment