Skip to content

Instantly share code, notes, and snippets.

@0x90
Created January 31, 2015 15:36
Show Gist options
  • Save 0x90/b2b4f23e75bc12a17d4c to your computer and use it in GitHub Desktop.
Save 0x90/b2b4f23e75bc12a17d4c to your computer and use it in GitHub Desktop.
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="robbyrussell"
#ZSH_THEME="pygmalion"
#ZSH_THEME="xiong-chiamiov"
ZSH_THEME="random"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Uncomment this to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment to change how often before auto-updates occur? (in days)
# export UPDATE_ZSH_DAYS=13
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want to disable command autocorrection
# DISABLE_CORRECTION="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# Uncomment following line if you want to disable marking untracked files under
# VCS as dirty. This makes repository status check for large repositories much,
# much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment following line if you want to shown in the command execution time stamp
# in the history command output. The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|
# yyyy-mm-dd
# HIST_STAMPS="mm/dd/yyyy"
export PATH="/opt/local/libimobiledevice:$PATH"
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:/Users/090h/.rvm/gems/ruby-1.9.3-p484/bin:/Users/090h/.rvm/gems/ruby-1.9.3-p484@global/bin:/Users/090h/.rvm/rubies/ruby-1.9.3-p484/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Users/090h/.rvm/bin:/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(macports git github mercurial rvm django virtualenv virtualenvwrapper vagrant macports osx python)
#plugins=(cp git github mysql python screen vagrant mercurial macports golang scala sbt go ruby gem svn osx rails)
source $ZSH/oh-my-zsh.sh
# User configuration
#export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:/Users/090h/.rvm/gems/ruby-1.9.3-p484/bin:/Users/090h/.rvm/gems/ruby-1.9.3-p484@global/bin:/Users/090h/.rvm/rubies/ruby-1.9.3-p484/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Users/090h/.rvm/bin:/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin"
# export MANPATH="/usr/local/man:$MANPATH"
# Python
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
export PROJECT_HOME=$HOME/PycharmProjects
# export PIP_RESPECT_VIRTUALENV=true
#export VIRTUALENVWRAPPER_PYTHON=/opt/local/bin/python2.7
#export VIRTUALENVWRAPPER_VIRTUALENV=/opt/local/bin/virtualenv
#export WORKON_HOME=$HOME/.virtualenvs
#source /opt/local/bin/virtualenvwrapper_lazy.sh-2.7
#if [ -f /opt/local/bin/virtualenvwrapper.sh-2.7 ]; then
# virtualenvwrapper='virtualenvwrapper.sh-2.7'
# export WORKON_HOME=~/.virtualenvs
# export VIRTUALENVWRAPPER_VIRTUALENV=/opt/local/bin/virtualenv-2.7
# source /opt/local/bin/virtualenvwrapper.sh-2.7
#fi
#PyEnv
#export PATH="$HOME/.pyenv/bin:$PATH"
#eval "$(pyenv init -)"
#eval "$(pyenv virtualenv-init -)"
# # Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
#export DYLD_LIBRARY_PATH=/opt/limobiledevice-macosx/:$DYLD_LIBRARY_PATH
#PATH=${PATH}:/your/path/here/imobiledevice-macosx/
# PostgreSQL
export PATH=/opt/local/lib/postgresql93/bin:$PATH
alias postgres_start='sudo /opt/local/etc/LaunchDaemons/org.macports.postgresql93-server/postgresql93-server.wrapper start';
alias postgres_stop='sudo /opt/local/etc/LaunchDaemons/org.macports.postgresql93-server/postgresql93-server.wrapper stop';
alias postgres_restart='sudo /opt/local/etc/LaunchDaemons/org.macports.postgresql93-server/postgresql93-server.wrapper restart';
#MSF
export PATH=/opt/msf:$PATH
export MSF_DATABASE_CONFIG=/opt/msf/config/database.yml
#Vagrant + VMWare Fusion
export VAGRANT_DEFAULT_PROVIDER=vmware_fusion
# FileSearch
function f() { find . -iname "*$1*" ${@:2} }
function r() { grep "$1" ${@:2} -R . }
#mkdir and cd
function mkcd() { mkdir -p "$@" && cd "$_"; }
# Aliases
alias gc='git clone'
alias grep='grep -i'
alias cppcompile='c++ -std=c++11 -stdlib=libc++'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment